radv: enable TC-compat CMASK on GFX10+
Untested on older chips. Should help MSAA games by 1-2%. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9415>
This commit is contained in:
parent
72b58c4a5e
commit
f810d8cd50
|
@ -263,13 +263,15 @@ static bool
|
||||||
radv_use_tc_compat_cmask_for_image(struct radv_device *device,
|
radv_use_tc_compat_cmask_for_image(struct radv_device *device,
|
||||||
struct radv_image *image)
|
struct radv_image *image)
|
||||||
{
|
{
|
||||||
if (!(device->instance->perftest_flags & RADV_PERFTEST_TC_COMPAT_CMASK))
|
|
||||||
return false;
|
|
||||||
|
|
||||||
/* TC-compat CMASK is only available for GFX8+. */
|
/* TC-compat CMASK is only available for GFX8+. */
|
||||||
if (device->physical_device->rad_info.chip_class < GFX8)
|
if (device->physical_device->rad_info.chip_class < GFX8)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
/* TODO: Enable TC-compat CMASK on GFX8-9. */
|
||||||
|
if (device->physical_device->rad_info.chip_class < GFX10 &&
|
||||||
|
!(device->instance->perftest_flags & RADV_PERFTEST_TC_COMPAT_CMASK))
|
||||||
|
return false;
|
||||||
|
|
||||||
if (image->usage & VK_IMAGE_USAGE_STORAGE_BIT)
|
if (image->usage & VK_IMAGE_USAGE_STORAGE_BIT)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue