diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-07 09:52:14 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-08 13:42:02 -0700 |
commit | df3c1a563f3d76b07ab82c7b230b0030452f36ff (patch) | |
tree | a75c039c4bda73e89939fb46866b99d9e634512f /src/mesa/drivers/dri/i965/brw_gs_state.c | |
parent | 34474fa4119378ef9fbb9fb557cc19c0a1ca1f7e (diff) |
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_gs_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs_state.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs_state.c b/src/mesa/drivers/dri/i965/brw_gs_state.c index c01315120e..63562ebcfc 100644 --- a/src/mesa/drivers/dri/i965/brw_gs_state.c +++ b/src/mesa/drivers/dri/i965/brw_gs_state.c @@ -111,11 +111,9 @@ gs_unit_create_from_key(struct brw_context *brw, struct brw_gs_unit_key *key) if (key->prog_active) { /* Emit GS program relocation */ - dri_bo_emit_reloc(bo, - I915_GEM_DOMAIN_INSTRUCTION, 0, - gs.thread0.grf_reg_count << 1, - offsetof(struct brw_gs_unit_state, thread0), - brw->gs.prog_bo); + drm_intel_bo_emit_reloc(bo, offsetof(struct brw_gs_unit_state, thread0), + brw->gs.prog_bo, gs.thread0.grf_reg_count << 1, + I915_GEM_DOMAIN_INSTRUCTION, 0); } return bo; |