nv50/ir: process texture offset sources as regular sources
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 19 Oct 2016 05:20:03 +0000 (01:20 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 20 Oct 2016 01:02:01 +0000 (21:02 -0400)
commitcd45d758ff87305ceecca899fe7325779bb6755b
tree9afe16598dd07d2fb1be3a44f8d844a818909064
parent313fba5ee1de9416930e45da8aff63a24763940b
nv50/ir: process texture offset sources as regular sources

With ARB_gpu_shader5, texture offsets can be any source, including TEMPs
and IN's. Make sure to process them as regular sources so that we pick
up masks, etc.

This should fix some CTS tests that feed offsets directly to
textureGatherOffset, and we were not picking up the input use, thus not
advertising it in the shader header.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Dave Airlie <airlied@redhat.com>
Cc: 12.0 13.0 <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp