intel: remove/disable the "paired depth/stencil" code
authorBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:34:16 +0000 (15:34 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:34:16 +0000 (15:34 -0700)
We only allow combined depth+stencil renderbuffers so the complicated code
for splitting and combining separate depth and stencil buffers is no longer
needed.

src/mesa/drivers/dri/i915/Makefile
src/mesa/drivers/dri/i965/Makefile
src/mesa/drivers/dri/intel/intel_buffers.c
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_fbo.h

index 5858e0ee9fd44389e48e403280c0a4dbacc2415a..5652f9e4bd0cdc6be159d7591ae415ee66d01eb9 100644 (file)
@@ -50,8 +50,7 @@ DRIVER_SOURCES = \
        intel_span.c \
        intel_state.c \
        intel_tris.c \
-       intel_fbo.c \
-       intel_depthstencil.c
+       intel_fbo.c
 
 C_SOURCES = \
        $(COMMON_SOURCES) \
index 37a470f2e246e9f8295aad2401fcc1a1b4ef38c5..f134d6809ae621790d2af6b478d1aa2c516eb832 100644 (file)
@@ -11,7 +11,6 @@ DRIVER_SOURCES = \
        intel_buffers.c \
        intel_context.c \
        intel_decode.c \
-       intel_depthstencil.c \
        intel_fbo.c \
        intel_mipmap_tree.c \
        intel_regions.c \
index 9a1ac5ab708d923c1f9b0f94292b77f42572de4c..7465ba7c696e613290d9e85562f66c8f12c85f8c 100644 (file)
@@ -577,9 +577,6 @@ intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb)
       return;
    }
 
-   if (fb->Name)
-      intel_validate_paired_depth_stencil(ctx, fb);
-
    /*
     * How many color buffers are we drawing into?
     */
index e80b9c3fcede23460483dea1b8d3d35111765055..47217f756ca85922784a122e5fb61a09156f39d4 100644 (file)
@@ -69,10 +69,6 @@ intel_delete_renderbuffer(struct gl_renderbuffer *rb)
 
    ASSERT(irb);
 
-   if (irb->PairedStencil || irb->PairedDepth) {
-      intel_unpair_depth_stencil(ctx, irb);
-   }
-
    if (irb->span_cache != NULL)
       _mesa_free(irb->span_cache);
 
index d0ba3ac32a40207f43fd7551c5f7e10a708fe623..a44989b5fdd9fc63c23f9efc1ffc7daf6f9bdb53 100644 (file)
@@ -66,8 +66,7 @@ struct intel_renderbuffer
    GLuint pfPitch;              /* possibly paged flipped pitch */
    GLboolean RenderToTexture;   /* RTT? */
 
-   GLuint PairedDepth;   /**< only used if this is a depth renderbuffer */
-   GLuint PairedStencil; /**< only used if this is a stencil renderbuffer */
+   GLuint pf_pending;  /**< sequence number of pending flip */
 
    GLuint vbl_pending;   /**< vblank sequence number of pending flip */