pan/midgard: Allow jumping out of a shader
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 4 Feb 2020 14:28:06 +0000 (09:28 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sun, 16 Feb 2020 14:16:47 +0000 (09:16 -0500)
commita55a2e02a54cadcd9466d02021c2c7a0739c373f
treeda6f3d30343b76824739e5df22d0cccb5ef9e9dc
parent3f59098d1a7a00d51e2b15e06aba359835c7e1ea
pan/midgard: Allow jumping out of a shader

This comes up as a `return;` instruction in a compute shader. We need to
use the special tag 1 to signify "break". Fixes numerous
INSTR_INVALID_ENC faults in dEQP-GLES31.functional.compute.basic.*

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
src/panfrost/midgard/midgard_compile.c