summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2007-10-29 17:36:37 +0000
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2007-10-29 17:37:05 +0000
commitf33ced441c934b625b9c126d054439855e822215 (patch)
tree5f63cf12fb6d0f4361e66a679a461ff2ff08f12a /src/mesa/drivers
parentda9815e17f42b5f07beb47a08146e44c367c1ac2 (diff)
Update intel_is_format_supported.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c b/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
index 1660046f13..f1358fef1a 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_winsys_softpipe.c
@@ -45,22 +45,20 @@ struct intel_softpipe_winsys {
/**
* Return list of surface formats supported by this driver.
*/
-static const unsigned *
-intel_is_format_supported(struct softpipe_winsys *sws,
- unsigned *numFormats)
+static boolean
+intel_is_format_supported(struct softpipe_winsys *sws, uint format)
{
- static const GLuint formats[] = {
- PIPE_FORMAT_U_A8_R8_G8_B8,
- PIPE_FORMAT_U_R5_G6_B5,
- PIPE_FORMAT_S8_Z24,
- };
-
- *numFormats = sizeof(formats) / sizeof(formats[0]);
- return formats;
+ switch(format) {
+ case PIPE_FORMAT_U_A8_R8_G8_B8:
+ case PIPE_FORMAT_U_R5_G6_B5:
+ case PIPE_FORMAT_S8_Z24:
+ return TRUE;
+ default:
+ return FALSE;
+ }
}
-
struct pipe_context *
intel_create_softpipe( struct intel_context *intel )
{