diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_state.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_state.c b/src/mesa/drivers/dri/i965/brw_wm_state.c index 723cdc27e15..5da7d6dd391 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_state.c @@ -222,23 +222,23 @@ brw_upload_wm_unit(struct brw_context *brw) /* Emit scratch space relocation */ if (prog_data->base.total_scratch != 0) { - drm_bacon_bo_emit_reloc(brw->batch.bo, - brw->wm.base.state_offset + - offsetof(struct brw_wm_unit_state, thread2), - brw->wm.base.scratch_bo, - wm->thread2.per_thread_scratch_space, - I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER); + brw_emit_reloc(&brw->batch, + brw->wm.base.state_offset + + offsetof(struct brw_wm_unit_state, thread2), + brw->wm.base.scratch_bo, + wm->thread2.per_thread_scratch_space, + I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER); } /* Emit sampler state relocation */ if (brw->wm.base.sampler_count != 0) { - drm_bacon_bo_emit_reloc(brw->batch.bo, - brw->wm.base.state_offset + - offsetof(struct brw_wm_unit_state, wm4), - brw->batch.bo, (brw->wm.base.sampler_offset | - wm->wm4.stats_enable | - (wm->wm4.sampler_count << 2)), - I915_GEM_DOMAIN_INSTRUCTION, 0); + brw_emit_reloc(&brw->batch, + brw->wm.base.state_offset + + offsetof(struct brw_wm_unit_state, wm4), + brw->batch.bo, + brw->wm.base.sampler_offset | wm->wm4.stats_enable | + (wm->wm4.sampler_count << 2), + I915_GEM_DOMAIN_INSTRUCTION, 0); } brw->ctx.NewDriverState |= BRW_NEW_GEN4_UNIT_STATE; |