projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b30113
)
use winsys supported_formats() query
author
keithw
<keithw@keithw-laptop.(none)>
Fri, 10 Aug 2007 15:12:09 +0000
(16:12 +0100)
committer
keithw
<keithw@keithw-laptop.(none)>
Fri, 10 Aug 2007 15:12:09 +0000
(16:12 +0100)
src/mesa/pipe/softpipe/sp_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_context.c
b/src/mesa/pipe/softpipe/sp_context.c
index 53990637bade6244bdaf6e2147f4a344410651be..b35bd660815f14e00c514da0dc810ee7e47af3ba 100644
(file)
--- 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
}