OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 12:43:48 +0000 (13:43 +0100)
commitb26bac8b1e094b8400c2f5dfa22283c23dda4080
treea68c9192d9eb23fa230360d3e1ac9f6769b312db
parent20fd2abdd6dce03db7ad79375ddfc27b4b4926dc
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>
(cherry picked from commit a2af42c1d2dc91f4c31e25ff9fff15a89a9b6ead)
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp