From: Christian König Date: Sun, 15 May 2011 17:26:53 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/master' into pipe-video X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=828540e491d88b9b6217e6568873a78462919ae8;p=mesa.git Merge remote-tracking branch 'origin/master' into pipe-video --- 828540e491d88b9b6217e6568873a78462919ae8 diff --cc src/gallium/winsys/r600/drm/r600_hw_context.c index 34ea2a6bacb,7c3fd1aa206..0618d2329e6 --- a/src/gallium/winsys/r600/drm/r600_hw_context.c +++ b/src/gallium/winsys/r600/drm/r600_hw_context.c @@@ -922,11 -942,11 +942,11 @@@ void r600_context_pipe_state_set(struc } if (block->flags & REG_FLAG_DIRTY_ALWAYS) dirty |= R600_BLOCK_STATUS_DIRTY; - if (block->pm4_bo_index[id]) { + if (block->pm4_bo_index[id] && state->regs[i].bo) { /* find relocation */ reloc_id = block->pm4_bo_index[id]; - r600_bo_reference(ctx->radeon, &block->reloc[reloc_id].bo, state->regs[i].bo); - state->regs[i].bo->fence = ctx->radeon->fence; + r600_bo_reference(ctx->radeon, &block->reloc[reloc_id].bo, reg->bo); + reg->bo->fence = ctx->radeon->fence; /* always force dirty for relocs for now */ dirty |= R600_BLOCK_STATUS_DIRTY; }