summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-05-12 01:38:30 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2017-05-14 23:40:33 +0200
commitddc0811b4ce9a5f5ec0e04829fa99148a4853818 (patch)
treec12030e247e972af9e6780820170fb75668d9cb8
parentb7ef70afd4c8466227eefc47489c5f6b87e92ab9 (diff)
radv: stop using radv_amdgpu_winsys::family
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c2
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
index cbfd0d1a8e..5ea12188e8 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c
@@ -816,7 +816,7 @@ static int radv_amdgpu_winsys_cs_submit_sysmem(struct radeon_winsys_ctx *_ctx,
struct amdgpu_cs_request request;
uint32_t pad_word = 0xffff1000U;
- if (radv_amdgpu_winsys(ws)->family == FAMILY_SI)
+ if (radv_amdgpu_winsys(ws)->info.chip_class == SI)
pad_word = 0x80000000;
assert(cs_count);
diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
index 2ebb85699a..31b0db9763 100644
--- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
+++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_winsys.c
@@ -138,7 +138,7 @@ do_winsys_init(struct radv_amdgpu_winsys *ws, int fd)
ws->info.num_sdma_rings = MIN2(ws->info.num_sdma_rings, MAX_RINGS_PER_TYPE);
ws->info.num_compute_rings = MIN2(ws->info.num_compute_rings, MAX_RINGS_PER_TYPE);
- ws->use_ib_bos = ws->family >= FAMILY_CI;
+ ws->use_ib_bos = ws->info.chip_class >= CIK;
return true;
fail:
return false;