From: Ilia Mirkin Date: Thu, 30 Apr 2015 06:00:20 +0000 (-0400) Subject: nvc0/ir: allow tess eval output loads to be CSE'd X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da89e75d9c6399c8fb0286460c91a77778c0eec9;p=mesa.git 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 --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp index ad9bf6f4aa9..e9648aa7b91 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp @@ -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; }