diff options
author | Eric Anholt <[email protected]> | 2007-05-17 15:28:01 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-05-17 15:28:01 -0700 |
commit | cfc21190af1038f204d38ab4764a9c731b0323a5 (patch) | |
tree | 870a805778fa00a941c080217be4bb9fbbdd4b1b /src/mesa/drivers/dri/i915tex/i915_texstate.c | |
parent | 7b971a50088caeeb2d66d99dbf6bef580a01c5d9 (diff) |
Convert i915tex to the new interface and make it compile.
Diffstat (limited to 'src/mesa/drivers/dri/i915tex/i915_texstate.c')
-rw-r--r-- | src/mesa/drivers/dri/i915tex/i915_texstate.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915tex/i915_texstate.c b/src/mesa/drivers/dri/i915tex/i915_texstate.c index e0ecdfde24a..31d18759ee5 100644 --- a/src/mesa/drivers/dri/i915tex/i915_texstate.c +++ b/src/mesa/drivers/dri/i915tex/i915_texstate.c @@ -129,7 +129,7 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3) /*We need to refcount these. */ if (i915->state.tex_buffer[unit] != NULL) { - driBOUnReference(i915->state.tex_buffer[unit]); + dri_bo_unreference(i915->state.tex_buffer[unit]); i915->state.tex_buffer[unit] = NULL; } @@ -141,7 +141,9 @@ i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3) */ firstImage = tObj->Image[0][intelObj->firstLevel]; - i915->state.tex_buffer[unit] = driBOReference(intelObj->mt->region->buffer); + dri_bo_reference(intelObj->mt->region->buffer); + i915->state.tex_buffer[unit] = intelObj->mt->region->buffer; + i915->state.tex_offset[unit] = intel_miptree_image_offset(intelObj->mt, 0, intelObj-> firstLevel); @@ -322,7 +324,7 @@ i915UpdateTextureState(struct intel_context *intel) I915_ACTIVESTATE(i915, I915_UPLOAD_TEX(i), GL_FALSE); if (i915->state.tex_buffer[i] != NULL) { - driBOUnReference(i915->state.tex_buffer[i]); + dri_bo_unreference(i915->state.tex_buffer[i]); i915->state.tex_buffer[i] = NULL; } |