nv50/ir: force-enable derivatives on TXD ops
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 19 Mar 2016 15:46:11 +0000 (11:46 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 19 Mar 2016 17:09:49 +0000 (13:09 -0400)
commitd2445b00837c9123b59a1ac743c136546f334504
tree570565cc1c2fc30766047664bedfc9e3164a906a
parentd1b85dbffa0eec2b44bb2a9f339a2617a39730da
nv50/ir: force-enable derivatives on TXD ops

This matters especially in vertex shaders, where derivatives are
disabled by default. This fixes textureGrad in vertex shaders on nv50.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_nv50.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nv50.cpp