aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorkeithw <keithw@keithw-laptop.(none)>2007-08-10 16:12:09 +0100
committerkeithw <keithw@keithw-laptop.(none)>2007-08-10 16:12:09 +0100
commitfb4ff8a2a8c0adbe1925d42eaaedfa52707c7ffb (patch)
tree376fceae40161c803451461beb1cc164f78d67b4 /src/mesa/pipe
parent5b301132364dd78f5477cc2028bbde36f524fcf1 (diff)
use winsys supported_formats() query
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c
index 53990637bad..b35bd660815 100644
--- a/src/mesa/pipe/softpipe/sp_context.c
+++ b/src/mesa/pipe/softpipe/sp_context.c
@@ -53,6 +53,7 @@
static const GLuint *
softpipe_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
{
+#if 0
static const GLuint supported[] = {
PIPE_FORMAT_U_R8_G8_B8_A8,
PIPE_FORMAT_U_A8_R8_G8_B8,
@@ -73,6 +74,10 @@ softpipe_supported_formats(struct pipe_context *pipe, GLuint *numFormats)
*numFormats = sizeof(supported)/sizeof(supported[0]);
return supported;
+#else
+ struct softpipe_context *softpipe = softpipe_context( pipe );
+ return softpipe->winsys->supported_formats( softpipe->winsys, numFormats );
+#endif
}