gm107/ir: avoid combining geometry shader stores at 0x60
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 7 Jan 2020 02:54:26 +0000 (21:54 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 12 Jan 2020 17:11:16 +0000 (12:11 -0500)
commit3e9aacb139dc4cb101780e235fc5dd45acf860f3
tree81008eb8dacaa3410b78a6f67925e3f69a3da4a9
parent3be708eb3128a5b4b304baf198da2126b5328fb5
gm107/ir: avoid combining geometry shader stores at 0x60

This corresponds to gl_PrimitiveID and gl_Layer. When both of these are
stored in a single AST.64 or AST.128 operation, then it appears as
though the whole store fails. Fixes the recently extended
glsl-1.50-transform-feedback-builtins piglit, and also
gtf30.GL3Tests.transform_feedback.transform_feedback_builtins.

The issue was reproduced on GM107 and GP108 but not GK208 nor GK104.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp