diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-01-16 21:23:48 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-01-16 22:15:22 +0100 |
commit | 8406f79d6a3511dc6bf4d9c2ab3a80828c363d3a (patch) | |
tree | 7a891f20214fa9469b46b3a6cb9c12fe30b63aff /src/amd/vulkan/radv_query.c | |
parent | 0baa639f76b8e62327709298bc14637e28f27701 (diff) |
radv: Get physical device from radv_device instead of the instance.
Signed-off-by: Bas Nieuwenhuizen <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_query.c')
-rw-r--r-- | src/amd/vulkan/radv_query.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/amd/vulkan/radv_query.c b/src/amd/vulkan/radv_query.c index 06762dee086..a29a05d4b84 100644 --- a/src/amd/vulkan/radv_query.c +++ b/src/amd/vulkan/radv_query.c @@ -35,10 +35,10 @@ static unsigned get_max_db(struct radv_device *device) { - unsigned num_db = device->instance->physicalDevice.rad_info.num_render_backends; - MAYBE_UNUSED unsigned rb_mask = device->instance->physicalDevice.rad_info.enabled_rb_mask; + unsigned num_db = device->physical_device->rad_info.num_render_backends; + MAYBE_UNUSED unsigned rb_mask = device->physical_device->rad_info.enabled_rb_mask; - if (device->instance->physicalDevice.rad_info.chip_class == SI) + if (device->physical_device->rad_info.chip_class == SI) num_db = 8; else num_db = MAX2(8, num_db); |