nv50/ir: do not insert texture barriers on gm107
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 16 Dec 2016 13:22:16 +0000 (14:22 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Jan 2017 14:21:47 +0000 (15:21 +0100)
It's actually useless to insert those texture barriers post RA
because the current control code (ie. st 0x0) will wait for all
dependencies before issuing a new instruction.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp

index fe18f4718de4d2aaeff463e535e4833b9af2e9d8..ff253af69972ea7b81e686d3b372f9e00352a1a8 100644 (file)
@@ -190,7 +190,8 @@ NVC0LegalizePostRA::NVC0LegalizePostRA(const Program *prog)
    : rZero(NULL),
      carry(NULL),
      pOne(NULL),
-     needTexBar(prog->getTarget()->getChipset() >= 0xe0)
+     needTexBar(prog->getTarget()->getChipset() >= 0xe0 &&
+                prog->getTarget()->getChipset() < 0x110)
 {
 }