r600: don't merge GDS into VTX
authorDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 03:47:32 +0000 (04:47 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Jun 2017 06:23:21 +0000 (16:23 +1000)
We don't want vtx/tex instructions ending up in GDS sections.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_asm.c

index e0de645c2e3d38a0201452dcb8a1815193f31325..9db99158658f2cd47bcba1ec0b738b61a4a65450 100644 (file)
@@ -1332,8 +1332,9 @@ static unsigned r600_bytecode_num_tex_and_vtx_instructions(const struct r600_byt
 static inline boolean last_inst_was_not_vtx_fetch(struct r600_bytecode *bc)
 {
        return !((r600_isa_cf(bc->cf_last->op)->flags & CF_FETCH) &&
-                       (bc->chip_class == CAYMAN ||
-                       bc->cf_last->op != CF_OP_TEX));
+                bc->cf_last->op != CF_OP_GDS &&
+                (bc->chip_class == CAYMAN ||
+                 bc->cf_last->op != CF_OP_TEX));
 }
 
 static int r600_bytecode_add_vtx_internal(struct r600_bytecode *bc, const struct r600_bytecode_vtx *vtx,