intel: Add fields to intel_renderbuffer for unwrapping packed depth/stencil buffers
authorChad Versace <chad@chad-versace.us>
Thu, 16 Jun 2011 21:12:54 +0000 (14:12 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 21 Jun 2011 18:21:57 +0000 (11:21 -0700)
commit39d0e3632a4ccb10f2ce6578151e854ba52d3c0e
tree61656ec849d067bd7452d29e4369e61c85d7eaf7
parent23ed3b90c7f9056182307f9a69a56f748da331a3
intel: Add fields to intel_renderbuffer for unwrapping packed depth/stencil buffers

Add the following fields:
    intel_renderbuffer.wrapped_depth;
    intel_renderbuffer.wrapped_stencil

If the intel_context is using separate stencil and the renderbuffer has
a packed depth/stencil format, then wrapped_depth and wrapped_stencil are
the real renderbuffers.

Alter the following functions to accomodate the wrapped buffers:
    intel_delete_renderbuffer
    intel_draw_buffer
    intel_get_renderbuffer
    intel_renderbuffer_map
    intel_renderbuffer_unmap

Subsequent commits allocate renderbuffer storage for wrapped_depth and
wrapped_stencil.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h
src/mesa/drivers/dri/intel/intel_span.c