nvc0/ir: fix emission of SHLADD with NEG modifiers

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 26 October 2016 15:18 UTC

This affects GF100:GK110 chipsets, but not GM107+ where the logic is a bit different. The emitters tried to emit sub instead of subr when src0 has a NEG modifier.

This fixes the following piglit tests glsl-fs-loop-nested and glsl-vs-loop-nested.

1ec7227 nvc0/ir: fix emission of SHLADD with NEG modifiers
.../drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp | 2 +-
.../drivers/nouveau/codegen/nv50_ir_emit_nvc0.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share