checkpoint: intel_renderbuffer removal
authorBrian <brian@i915.localnet.net>
Thu, 9 Aug 2007 16:33:18 +0000 (10:33 -0600)
committerBrian <brian@i915.localnet.net>
Thu, 9 Aug 2007 20:26:02 +0000 (14:26 -0600)
src/mesa/drivers/dri/intel_winsys/Makefile
src/mesa/drivers/dri/intel_winsys/intel_buffers.c
src/mesa/drivers/dri/intel_winsys/intel_fbo.c
src/mesa/drivers/dri/intel_winsys/intel_fbo.h
src/mesa/drivers/dri/intel_winsys/intel_screen.c

index ff635eb44d9ed8ba74c495935cae33b1b0a961b7..8d3d17e13ee0a8a4d8f26f25a7068676a529c5e7 100644 (file)
@@ -23,9 +23,10 @@ DRIVER_SOURCES = \
        intel_screen.c \
        intel_surface.c \
        intel_fbo.c \
-       intel_depthstencil.c \
        intel_batchpool.c
 
+UNUSED =       intel_depthstencil.c 
+
 C_SOURCES = \
        $(COMMON_SOURCES) \
        $(COMMON_BM_SOURCES) \
index 3cece9807965a40f8215153ba173d575d5db162a..ce217ceb568f4bf7f379015ac84f171a0a0b2997 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "pipe/p_context.h"
 
+
 /* This block can be removed when libdrm >= 2.3.1 is required */
 
 #ifndef DRM_VBLANK_FLIP
@@ -275,6 +276,7 @@ intelWindowMoved(struct intel_context *intel)
 
 
 /* Emit wait for pending flips */
+#if 0
 void
 intel_wait_flips(struct intel_context *intel, GLuint batch_flags)
 {
@@ -301,6 +303,7 @@ intel_wait_flips(struct intel_context *intel, GLuint batch_flags)
       intel_rb->pf_pending--;
    }
 }
+#endif
 
 #if 0
 /* Flip the front & back buffers
index 0b6c6a94ee5af4fb781f50d3f534b7f1a5aa27b4..7b9bef73bda74914cd953b50d8d3410b317f03cf 100644 (file)
@@ -148,10 +148,11 @@ intel_delete_renderbuffer(struct gl_renderbuffer *rb)
 
    DBG("freeing renderbuffer\n");
 
+#if 0
    if (irb->PairedStencil || irb->PairedDepth) {
       intel_unpair_depth_stencil(ctx, irb);
    }
-
+#endif
    if (intel && irb->region) {
       intel->pipe->region_release(intel->pipe, &irb->region);
    }
@@ -511,7 +512,9 @@ intel_wrap_texture(GLcontext * ctx, struct gl_texture_image *texImage)
 
 //   intel_set_span_functions(&irb->Base);
 
+#if 0
    irb->RenderToTexture = GL_TRUE;
+#endif
 
    return irb;
 }
index 0f99a3e98db39f3c5a923770346934dccc4047ce..35587f364a1e7b8b7fbafa93f88e6a942d733968 100644 (file)
@@ -77,6 +77,7 @@ struct intel_renderbuffer
 {
    struct gl_renderbuffer Base;
    struct pipe_region *region;
+#if 0
    void *pfMap;                 /* possibly paged flipped map pointer */
    GLuint pfPitch;              /* possibly paged flipped pitch */
    GLboolean RenderToTexture;   /* RTT? */
@@ -85,6 +86,7 @@ struct intel_renderbuffer
    GLuint PairedStencil; /**< only used if this is a stencil renderbuffer */
 
    GLuint pf_pending;  /**< sequence number of pending flip */
+#endif
 
    GLuint vbl_pending;   /**< vblank sequence number of pending flip */
 
index 81ab435f42eafd933d2f446c10f3780fae505696..fba0c47e598b3e08db986a0d0f4154fe0f671882 100644 (file)
@@ -46,6 +46,7 @@
 #include "dri_bufpool.h"
 
 #include "pipe/p_context.h"
+#include "state_tracker/st_cb_fbo.h"
 
 
 
@@ -308,10 +309,17 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
       }
 
       if (mesaVis->doubleBufferMode) {
+#if 01
          intel_fb->color_rb[1]
             = intel_new_renderbuffer_fb(rgbFormat);
          _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT,
                                &intel_fb->color_rb[1]->Base);
+#else
+         intel_fb->color_rb[1]
+            = st_new_renderbuffer_fb(rgbFormat);
+         _mesa_add_renderbuffer(&intel_fb->Base, BUFFER_BACK_LEFT,
+                               &intel_fb->color_rb[1]->Base);
+#endif
       }
 
       if (mesaVis->depthBits == 24 && mesaVis->stencilBits == 8) {