glsl/lower_output_reads: set invariant and precise flags on temporaries
authorKarol Herbst <kherbst@redhat.com>
Fri, 18 Jan 2019 13:13:25 +0000 (14:13 +0100)
committerKarol Herbst <kherbst@redhat.com>
Sun, 20 Jan 2019 23:16:50 +0000 (00:16 +0100)
commit987744be9850bfe3a7c3c9556ae5d48ee5c34352
tree8548f0347fb1e67c266f7c1156f5cb98ffb73d8b
parent8002eaab6c1152afb3f415d6fc35e74a853c4cbf
glsl/lower_output_reads: set invariant and precise flags on temporaries

fixes a couple of deqp tests (on nvc0 and potential other drivers):
dEQP-GLES3.functional.shaders.invariance.highp.common_subexpression_1
dEQP-GLES3.functional.shaders.invariance.highp.common_subexpression_2
dEQP-GLES3.functional.shaders.invariance.highp.common_subexpression_3
dEQP-GLES3.functional.shaders.invariance.mediump.common_subexpression_1
dEQP-GLES3.functional.shaders.invariance.mediump.common_subexpression_2
dEQP-GLES3.functional.shaders.invariance.mediump.common_subexpression_3
dEQP-GLES3.functional.shaders.invariance.lowp.common_subexpression_1
dEQP-GLES3.functional.shaders.invariance.lowp.common_subexpression_2
dEQP-GLES3.functional.shaders.invariance.lowp.common_subexpression_3

CC: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/compiler/glsl/lower_output_reads.cpp