diff options
author | Brian Paul <[email protected]> | 2012-01-16 12:29:11 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-24 14:12:29 -0700 |
commit | 924de7dc96f4607cb3d833637b5f69f4b9e2a6d0 (patch) | |
tree | 53afefa94c5e03a2ceaf7544ef7f13cc28f4bb33 /src/mesa/drivers/dri/i915/i915_vtbl.c | |
parent | 1048d55d5fa60d17dd99ac7394ff0572500625f9 (diff) |
intel: use intel_rb_format() to get renderbuffer format
This will make future changes cleaner and less invasive.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_vtbl.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_vtbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c index e938af84bf5..62bfa0abf49 100644 --- a/src/mesa/drivers/dri/i915/i915_vtbl.c +++ b/src/mesa/drivers/dri/i915/i915_vtbl.c @@ -607,7 +607,7 @@ i915_set_draw_region(struct intel_context *intel, DSTORG_VERT_BIAS(0x8) | /* .5 */ LOD_PRECLAMP_OGL | TEX_DEFAULT_COLOR_OGL); if (irb != NULL) { - value |= i915_render_target_format_for_mesa_format[irb->Base.Format]; + value |= i915_render_target_format_for_mesa_format[intel_rb_format(irb)]; } else { value |= DV_PF_8888; } @@ -775,7 +775,7 @@ i915_update_draw_buffer(struct intel_context *intel) /* Check for stencil fallback. */ if (irbStencil && irbStencil->mt) { - assert(irbStencil->Base.Format == MESA_FORMAT_S8_Z24); + assert(intel_rb_format(irbStencil) == MESA_FORMAT_S8_Z24); FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, false); } else if (irbStencil && !irbStencil->mt) { FALLBACK(intel, INTEL_FALLBACK_STENCIL_BUFFER, true); @@ -788,7 +788,7 @@ i915_update_draw_buffer(struct intel_context *intel) * we still need to set up the shared depth/stencil state so we can use it. */ if (depthRegion == NULL && irbStencil && irbStencil->mt - && irbStencil->Base.Format == MESA_FORMAT_S8_Z24) { + && intel_rb_format(irbStencil) == MESA_FORMAT_S8_Z24) { depthRegion = irbStencil->mt->region; } |