gk104/ir: fix tex use generation to be more careful about eliding uses
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 18 Jun 2016 19:22:09 +0000 (15:22 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 19 Jun 2016 14:14:46 +0000 (10:14 -0400)
commit1804aa0b80cf5b1ee5d97bc33a12808c78673a12
treebbde5032522a85378bed2622f65f1358940d0205
parent194bcb49d1a7110832df3175739ec503d21beca3
gk104/ir: fix tex use generation to be more careful about eliding uses

If we have a loop, instructions before the tex might be added as tex
uses, and those may in fact dominate all other uses of the tex results.
This however doesn't mean that we don't need a texbar after the tex.
Only check if uses dominate each other they are dominated by the tex.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96565
Fixes: 7752bbc44 (gk104/ir: simplify and fool-proof texbar algorithm)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h