anv: remove some gen8 specifics handled now in hasvk
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20342>
This commit is contained in:
@@ -3678,13 +3678,7 @@ anv_can_sample_with_hiz(const struct intel_device_info * const devinfo,
|
||||
if (image->vk.image_type == VK_IMAGE_TYPE_3D)
|
||||
return false;
|
||||
|
||||
/* Allow this feature on BDW even though it is disabled in the BDW devinfo
|
||||
* struct. There's documentation which suggests that this feature actually
|
||||
* reduces performance on BDW, but it has only been observed to help so
|
||||
* far. Sampling fast-cleared blocks on BDW must also be handled with care
|
||||
* (see depth_stencil_attachment_compute_aux_usage() for more info).
|
||||
*/
|
||||
if (devinfo->ver != 8 && !devinfo->has_sample_with_hiz)
|
||||
if (!devinfo->has_sample_with_hiz)
|
||||
return false;
|
||||
|
||||
return image->vk.samples == 1;
|
||||
|
Reference in New Issue
Block a user