st/mesa: fix crash for drivers supporting nir defaulting to tgsi
authorKarol Herbst <kherbst@redhat.com>
Mon, 14 Oct 2019 23:06:18 +0000 (01:06 +0200)
committerKarol Herbst <karolherbst@gmail.com>
Wed, 16 Oct 2019 21:53:46 +0000 (21:53 +0000)
commit656c038d010b1cc82e0944f4c0fca85ece769bfb
tree4b8597d4974585f3a694dbb86b0f91ae4c20bf01
parentaaab70035a3db8da7c93965301f50e40ddbbbef9
st/mesa: fix crash for drivers supporting nir defaulting to tgsi

nvc0 and I assume radeonsi as well hit an assert inside glsl_to_tgsi as atan
instructions get inserted into the shader.

Fixes: cece947a8dfa ("glsl/builtin: Add alternate versions of atan using new ops")
Cc: Neil Roberts <nroberts@igalia.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/mesa/state_tracker/st_extensions.c