iris: Fix headerless sampler messages in compute shaders with preemption
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 18 Aug 2020 20:56:22 +0000 (13:56 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 14:57:40 +0000 (14:57 +0000)
commit3fed1c75ef4d165a3c96f3a9ac0295268c16c6be
tree0b5d8c63b8f30caa1670ce0da9c7472a37cb3ab5
parent58817bda8bccc7d5803f69fb029ae741dbf2a814
iris: Fix headerless sampler messages in compute shaders with preemption

We were failing to set the "Headerless Message for Preemptable Contexts"
bit in SAMPLER_MODE in the compute context.  Other drivers use a single
hardware context, so setting it on the render engine was sufficient to
flip it in both pipelines.  But iris uses a separate hardware context
for compute, so we were only getting these set for the render context.

Thanks to Jason Ekstrand for catching this bug.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6380>
src/gallium/drivers/iris/iris_state.c