diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp index cc298d5bad6..997d21aaf27 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir_peephole.cpp @@ -324,6 +324,8 @@ ConstantFolding::findOriginForTestWithZero(Value *value) void Modifier::applyTo(ImmediateValue& imm) const { + if (!bits) // avoid failure if imm.reg.type is unhandled (e.g. b128) + return; switch (imm.reg.type) { case TYPE_F32: if (bits & NV50_IR_MOD_ABS) |