r600g: make index bias fix for evergreen
authorDave Airlie <airlied@redhat.com>
Sat, 25 Sep 2010 09:23:05 +0000 (19:23 +1000)
committerDave Airlie <airlied@redhat.com>
Sat, 25 Sep 2010 12:14:08 +0000 (22:14 +1000)
src/gallium/drivers/r600/eg_hw_states.c

index 998d74bd3ebaf3ad856d027fbc7124475aa52848..272972d41895552954841f3ef7b698a3750ba919 100644 (file)
@@ -916,7 +916,7 @@ static int eg_draw_vgt_prim(struct r600_draw *draw,
        draw->vgt.states[EG_VGT__VGT_PRIMITIVE_TYPE] = prim;
        draw->vgt.states[EG_VGT__VGT_MAX_VTX_INDX] = draw->max_index;
        draw->vgt.states[EG_VGT__VGT_MIN_VTX_INDX] = draw->min_index;
-       draw->vgt.states[EG_VGT__VGT_INDX_OFFSET] = draw->start;
+       draw->vgt.states[EG_VGT__VGT_INDX_OFFSET] = draw->index_bias;
        draw->vgt.states[EG_VGT__VGT_DMA_INDEX_TYPE] = vgt_dma_index_type;
        draw->vgt.states[EG_VGT__VGT_PRIMITIVEID_EN] = 0x00000000;
        draw->vgt.states[EG_VGT__VGT_DMA_NUM_INSTANCES] = 0x00000001;