summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_clip_state.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-06-07 09:52:14 -0700
committerEric Anholt <eric@anholt.net>2010-06-08 13:42:02 -0700
commitdf3c1a563f3d76b07ab82c7b230b0030452f36ff (patch)
treea75c039c4bda73e89939fb46866b99d9e634512f /src/mesa/drivers/dri/i965/brw_clip_state.c
parent34474fa4119378ef9fbb9fb557cc19c0a1ca1f7e (diff)
downloadexternal_mesa3d-df3c1a563f3d76b07ab82c7b230b0030452f36ff.zip
external_mesa3d-df3c1a563f3d76b07ab82c7b230b0030452f36ff.tar.gz
external_mesa3d-df3c1a563f3d76b07ab82c7b230b0030452f36ff.tar.bz2
intel: Convert remaining dri_bo_emit_reloc to drm_intel_bo_emit_reloc.
The new API makes so much more sense, I'd like to forget how the old one worked.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip_state.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_clip_state.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip_state.c b/src/mesa/drivers/dri/i965/brw_clip_state.c
index 39285ff..856d8f0 100644
--- a/src/mesa/drivers/dri/i965/brw_clip_state.c
+++ b/src/mesa/drivers/dri/i965/brw_clip_state.c
@@ -146,12 +146,9 @@ clip_unit_create_from_key(struct brw_context *brw,
/* Emit clip program relocation */
assert(brw->clip.prog_bo);
- dri_bo_emit_reloc(bo,
- I915_GEM_DOMAIN_INSTRUCTION,
- 0,
- clip.thread0.grf_reg_count << 1,
- offsetof(struct brw_clip_unit_state, thread0),
- brw->clip.prog_bo);
+ drm_intel_bo_emit_reloc(bo, offsetof(struct brw_clip_unit_state, thread0),
+ brw->clip.prog_bo, clip.thread0.grf_reg_count << 1,
+ I915_GEM_DOMAIN_INSTRUCTION, 0);
return bo;
}