OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Oct 2016 08:01:03 +0000 (09:01 +0100)
commit52df379d6b3a3485bf2814f8a0fb54c90b0af6ad
treee8b851a32059aabc1938d79d4403f10156e67397
parent05b89cf40e1f1c2a31fac1aed389764a9b1141b0
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>
(cherry picked from commit cd45d758ff87305ceecca899fe7325779bb6755b)
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp