diff options
author | Ilia Mirkin <[email protected]> | 2016-05-21 15:41:03 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2016-05-22 11:58:22 -0400 |
commit | 035b1097db339fb605964da62d01553a2bc25061 (patch) | |
tree | 6536d63290f0e570acf05b8d5223f5f975c7ffb1 /src/gallium/drivers/nouveau | |
parent | bdc9c20df08d724b1eb3d507660f71ff47b9fc7b (diff) |
nvc0/ir: return 0 for gl_TessCoord.z for non-triangles modes
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Cc: "11.1 11.2" <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index dc0667fb6a9..9b4bf8230fa 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -2264,6 +2264,10 @@ NVC0LoweringPass::readTessCoord(LValue *dst, int c) y = dst; } else { assert(c == 2); + if (prog->driver->prop.tp.domain != PIPE_PRIM_TRIANGLES) { + bld.mkMov(dst, bld.loadImm(NULL, 0)); + return; + } x = bld.getSSA(); y = bld.getSSA(); } |