anv: Do not sample from 3d depth image with HiZ
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 1 Apr 2020 15:41:03 +0000 (18:41 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 1 Apr 2020 20:12:29 +0000 (20:12 +0000)
commite47bf7dadff612694cf61eedbabc7b313766053f
treef6ef270255e367b3ba1204ebccbda600e32547ae
parent0487130d3477c85abee77018e17d0ffe2d136349
anv: Do not sample from 3d depth image with HiZ

For Gen8-11, there are some restrictions around sampling from HiZ.
The Skylake PRM docs for RENDER_SURFACE_STATE::AuxiliarySurfaceMode
say:

    "If this field is set to AUX_HIZ, Number of Multisamples must
    be MULTISAMPLECOUNT_1, and Surface Type cannot be SURFTYPE_3D."

Fixes: dEQP-VK.geometry.layered.3d.*.readback
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2720
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Arcady Goldmints-Orlov <agoldmints@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4409>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4409>
src/intel/vulkan/anv_private.h