r600g: don't set predication on non-draw packets
authorMarek Olšák <marek.olsak@amd.com>
Sat, 7 Nov 2015 13:36:38 +0000 (14:36 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 13 Nov 2015 18:54:41 +0000 (19:54 +0100)
This has no effect.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/r600/r600_state_common.c

index e1608575103de8a04ecde0214f153f1c468d8fa5..eb5436197c6c034fe88361995af74aee8955496e 100644 (file)
@@ -1663,7 +1663,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
 
        /* Draw packets. */
        if (!info.indirect) {
-               cs->buf[cs->cdw++] = PKT3(PKT3_NUM_INSTANCES, 0, rctx->b.predicate_drawing);
+               cs->buf[cs->cdw++] = PKT3(PKT3_NUM_INSTANCES, 0, 0);
                cs->buf[cs->cdw++] = info.instance_count;
        }
 
@@ -1675,12 +1675,12 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
                rctx->vgt_state.last_draw_was_indirect = true;
                rctx->last_start_instance = -1;
 
-               cs->buf[cs->cdw++] = PKT3(EG_PKT3_SET_BASE, 2, rctx->b.predicate_drawing);
+               cs->buf[cs->cdw++] = PKT3(EG_PKT3_SET_BASE, 2, 0);
                cs->buf[cs->cdw++] = EG_DRAW_INDEX_INDIRECT_PATCH_TABLE_BASE;
                cs->buf[cs->cdw++] = va;
                cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF;
 
-               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, rctx->b.predicate_drawing);
+               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0);
                cs->buf[cs->cdw++] = radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx,
                                                           (struct r600_resource*)info.indirect,
                                                           RADEON_USAGE_READ,
@@ -1688,7 +1688,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
        }
 
        if (info.indexed) {
-               cs->buf[cs->cdw++] = PKT3(PKT3_INDEX_TYPE, 0, rctx->b.predicate_drawing);
+               cs->buf[cs->cdw++] = PKT3(PKT3_INDEX_TYPE, 0, 0);
                cs->buf[cs->cdw++] = ib.index_size == 4 ?
                                        (VGT_INDEX_32 | (R600_BIG_ENDIAN ? VGT_DMA_SWAP_32_BIT : 0)) :
                                        (VGT_INDEX_16 | (R600_BIG_ENDIAN ? VGT_DMA_SWAP_16_BIT : 0));
@@ -1710,7 +1710,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
                                cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF;
                                cs->buf[cs->cdw++] = info.count;
                                cs->buf[cs->cdw++] = V_0287F0_DI_SRC_SEL_DMA;
-                               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, rctx->b.predicate_drawing);
+                               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0);
                                cs->buf[cs->cdw++] = radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx,
                                                                           (struct r600_resource*)ib.buffer,
                                                                           RADEON_USAGE_READ,
@@ -1719,17 +1719,17 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
                        else {
                                uint32_t max_size = (ib.buffer->width0 - ib.offset) / ib.index_size;
 
-                               cs->buf[cs->cdw++] = PKT3(EG_PKT3_INDEX_BASE, 1, rctx->b.predicate_drawing);
+                               cs->buf[cs->cdw++] = PKT3(EG_PKT3_INDEX_BASE, 1, 0);
                                cs->buf[cs->cdw++] = va;
                                cs->buf[cs->cdw++] = (va >> 32UL) & 0xFF;
 
-                               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, rctx->b.predicate_drawing);
+                               cs->buf[cs->cdw++] = PKT3(PKT3_NOP, 0, 0);
                                cs->buf[cs->cdw++] = radeon_add_to_buffer_list(&rctx->b, &rctx->b.gfx,
                                                                           (struct r600_resource*)ib.buffer,
                                                                           RADEON_USAGE_READ,
                                                                            RADEON_PRIO_INDEX_BUFFER);
 
-                               cs->buf[cs->cdw++] = PKT3(EG_PKT3_INDEX_BUFFER_SIZE, 0, rctx->b.predicate_drawing);
+                               cs->buf[cs->cdw++] = PKT3(EG_PKT3_INDEX_BUFFER_SIZE, 0, 0);
                                cs->buf[cs->cdw++] = max_size;
 
                                cs->buf[cs->cdw++] = PKT3(EG_PKT3_DRAW_INDEX_INDIRECT, 1, rctx->b.predicate_drawing);