diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/r600/drm/r600_priv.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_priv.h b/src/gallium/winsys/r600/drm/r600_priv.h index 25a65c6a10..189644f31c 100644 --- a/src/gallium/winsys/r600/drm/r600_priv.h +++ b/src/gallium/winsys/r600/drm/r600_priv.h @@ -66,10 +66,10 @@ static void inline r600_context_reg(struct r600_context *ctx, unsigned group_id, id = group->offset_block_id[(offset - group->start_offset) >> 2]; block = &group->blocks[id]; id = (offset - block->start_offset) >> 2; - block->pm4[id] &= ~mask; - block->pm4[id] |= value; + block->reg[id] &= ~mask; + block->reg[id] |= value; if (!(block->status & R600_BLOCK_STATUS_DIRTY)) { - ctx->pm4_dirty_cdwords += 2 + block->pm4_ndwords; + ctx->pm4_dirty_cdwords += block->pm4_ndwords; } block->status |= R600_BLOCK_STATUS_ENABLED; block->status |= R600_BLOCK_STATUS_DIRTY; |