nvc0/ir: fix collection of first uses for texture barrier insertion
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 12 Jun 2015 14:09:05 +0000 (16:09 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Jun 2015 18:31:00 +0000 (14:31 -0400)
commita2af42c1d2dc91f4c31e25ff9fff15a89a9b6ead
tree48c103ea921848e4cab7243100db414edc40da6e
parent932d1613d1e15ec22555e5ec09105c49eb850e36
nvc0/ir: fix collection of first uses for texture barrier insertion

One of the places we have to insert texbars is in situations where the
result of the tex gets overwritten by a different instruction (e.g. in a
conditional statement). However in some situations it can actually
appear as though the original tex itself is an overwriting instruction.
This can naturally never really happen, so just ignore the tex
instruction when it comes up.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90347
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp