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/i830_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/i830_vtbl.c')
-rw-r--r-- | src/mesa/drivers/dri/i915/i830_vtbl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index 513acb938f1..082372e2c5d 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -642,7 +642,7 @@ i830_set_draw_region(struct intel_context *intel, DSTORG_VERT_BIAS(0x8) | DEPTH_IS_Z); /* .5 */ if (irb != NULL) { - value |= i830_render_target_format_for_mesa_format[irb->Base.Format]; + value |= i830_render_target_format_for_mesa_format[intel_rb_format(irb)]; } if (depth_region && depth_region->cpp == 4) { @@ -803,7 +803,7 @@ i830_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); @@ -816,7 +816,7 @@ i830_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; } |