nvc0/ir: allow tess eval output loads to be CSE'd
These only happen for gl_TessCoord which are constant. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
@@ -2518,6 +2518,8 @@ Instruction::isResultEqual(const Instruction *that) const
|
||||
case FILE_MEMORY_CONST:
|
||||
case FILE_SHADER_INPUT:
|
||||
return true;
|
||||
case FILE_SHADER_OUTPUT:
|
||||
return bb->getProgram()->getType() == Program::TYPE_TESSELLATION_EVAL;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user