summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-03 09:39:31 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-11-05 08:04:48 -0700
commit2085cc9ac7cc2efb681f8ac824686390e83e2475 (patch)
tree74b7304afd8a074780dd661766aab67fe5878ce1 /src/mesa
parente49efdab4a05d41f4b2f0bf989cdf036ab25879c (diff)
use st_create_framebuffer()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_screen.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_screen.c b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
index 1fa6b57378..ec94f3bbe1 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_screen.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_screen.c
@@ -41,6 +41,7 @@
#include "dri_bufpool.h"
#include "pipe/p_context.h"
+#include "state_tracker/st_public.h"
#include "state_tracker/st_cb_fbo.h"
@@ -283,6 +284,7 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
return GL_FALSE; /* not implemented */
}
else {
+#if 0
GLboolean swStencil = (mesaVis->stencilBits > 0 &&
mesaVis->depthBits != 24);
GLenum rgbFormat = (mesaVis->redBits == 5 ? GL_RGB5 : GL_RGBA8);
@@ -335,6 +337,13 @@ intelCreateBuffer(__DRIscreenPrivate * driScrnPriv,
GL_FALSE, /* never sw alpha */
GL_FALSE /* never sw aux */ );
driDrawPriv->driverPrivate = (void *) intel_fb;
+#else
+ struct st_framebuffer *stfb;
+
+ stfb = st_create_framebuffer(mesaVis);
+
+ driDrawPriv->driverPrivate = (void *) stfb;
+#endif
return GL_TRUE;
}