From: Nicolai Hähnle Date: Thu, 11 May 2017 23:38:30 +0000 (+0200) Subject: radv: stop using radv_amdgpu_winsys::family X-Git-Tag: upstream/18.1.0~9230 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=40e94847a509b61658548792f44c857177c10a9c;p=platform%2Fupstream%2Fmesa.git radv: stop using radv_amdgpu_winsys::family Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index cbfd0d1..5ea1218 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 2ebb856..31b0db9 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;