iris: Better determine map_would_stall for Z/S
authorNanley Chery <nanley.g.chery@intel.com>
Tue, 23 Jun 2020 17:23:12 +0000 (10:23 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Sep 2020 15:29:57 +0000 (15:29 +0000)
commitefd439e0d648c90ae5854a0e83cd864836864e91
tree568a50f5fb1b5e9c3b3507fc411667f0e8939fd8
parent2c30079628d180dbfb3504853ea675b78558725b
iris: Better determine map_would_stall for Z/S

Use iris_has_invalid_primary to determine if mapping a depth or stencil
surface would lead to a stall due to resolving.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6192>
src/gallium/drivers/iris/iris_resource.c