iris: Fix resource ptr in resolve_sampler_views
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 8 Dec 2020 18:27:14 +0000 (10:27 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 22:28:38 +0000 (22:28 +0000)
commit1f7427f97216ce63308e810c79b0280a69ef43fc
treede6c946053afc2065a861effb3eecddfd8bd7b40
parent4ba884b8140fc64d433959cbe9ef46fa12f4fd07
iris: Fix resource ptr in resolve_sampler_views

Use the sampler view's iris_resource instead of its pipe_resource. For
stencil views of a depth-stencil resource, this enables the stencil
resource to cause a depth cache flush when needed.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3287
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7996>
src/gallium/drivers/iris/iris_resolve.c