iris: allow compression conditionally for images on gen12
authorTapani Pälli <tapani.palli@intel.com>
Thu, 12 Mar 2020 06:24:09 +0000 (08:24 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 10:34:21 +0000 (10:34 +0000)
commitfd1436440bd84d0b48fd7282b8f012ad382483ed
tree42a66e600a947ed847ab8a3e9ccb4607a9769551
parentd836f3fadfbfe3dfc8bd1b60b2146f676e8ff8a1
iris: allow compression conditionally for images on gen12

With this change, amount of resolves happening with deqp-gles31
(--deqp-case=*load_store*) drops ~50%.

v2: use iris_image_view_get_format to get the format,
    get devinfo from context instead of passing it (Nanley)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4080>
src/gallium/drivers/iris/iris_resolve.c