mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
nvc0/ir: return 0 for gl_TessCoord.z for non-triangles modes
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
bdc9c20df0
commit
035b1097db
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue