summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2012-02-07 22:39:20 +0100
committerChristoph Bumiller <[email protected]>2012-04-14 21:54:03 +0200
commit2fc014f8c0d9339b1652f4e037aee5697142304a (patch)
treec66e5157d73fa6e23f2ba38ae033f80334c239d7 /src/gallium/drivers
parenta765d7880f80d01be261a5d1f4b356a2b6fcfaad (diff)
nv50/ir/opt: don't regard OP_WRSV as dead code
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
index 2cca44921a5..85e08579714 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp
@@ -62,7 +62,8 @@ Instruction::isNop() const
bool Instruction::isDead() const
{
if (op == OP_STORE ||
- op == OP_EXPORT)
+ op == OP_EXPORT ||
+ op == OP_WRSV)
return false;
for (int d = 0; defExists(d); ++d)