OSDN Git Service

nvc0/ir: fix picking of coordinates from tex instruction for textureGrad
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 20 Mar 2016 21:26:13 +0000 (17:26 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Mar 2016 12:35:38 +0000 (08:35 -0400)
commitf667d15561820ee9dd8e836d43cce3ee52a4780e
tree39319813a5d995ac6ab8431016f710fa62db9296
parent6711f159d94f37f3f45d36a8cb172cfc00692875
nvc0/ir: fix picking of coordinates from tex instruction for textureGrad

On Fermi, there's an argument in front of the coords that combines array
and indirect handle, while on Kepler the array and the indirect handle
are separate (and in front of the coords). We were previously only
accounting for the array bit of it, if there were an indirect access it
wouldn't be counted in the formula.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp