diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-11-06 14:59:17 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-11-06 15:22:55 -0700 |
commit | d35cb1a121c272bf5be29fc62d59f4f71724201a (patch) | |
tree | e83b4d9c9ef44ff27cd37ac780954f5aef30a126 /src/mesa/pipe | |
parent | db01ff6a19fb2365d4185321654bdfa09dae653f (diff) |
remove dead code in softpipe_is_format_supported()
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_context.c | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c index 954884e7e9..09c5a7152d 100644 --- a/src/mesa/pipe/softpipe/sp_context.c +++ b/src/mesa/pipe/softpipe/sp_context.c @@ -51,35 +51,11 @@ * parameter or another function. */ static boolean -softpipe_is_format_supported( struct pipe_context *pipe, - uint format ) +softpipe_is_format_supported( struct pipe_context *pipe, uint format ) { -#if 0 - /* XXX: This is broken -- rewrite if still needed. */ - static const unsigned supported[] = { - PIPE_FORMAT_U_R8_G8_B8_A8, - PIPE_FORMAT_U_A8_R8_G8_B8, - PIPE_FORMAT_U_R5_G6_B5, - PIPE_FORMAT_U_L8, - PIPE_FORMAT_U_A8, - PIPE_FORMAT_U_I8, - PIPE_FORMAT_U_L8_A8, - PIPE_FORMAT_S_R16_G16_B16_A16, - PIPE_FORMAT_YCBCR, - PIPE_FORMAT_YCBCR_REV, - PIPE_FORMAT_U_Z16, - PIPE_FORMAT_U_Z32, - PIPE_FORMAT_F_Z32, - PIPE_FORMAT_S8_Z24, - PIPE_FORMAT_U_S8 - }; - - *numFormats = sizeof(supported)/sizeof(supported[0]); - return supported; -#else struct softpipe_context *softpipe = softpipe_context( pipe ); + /* ask winsys if the format is supported */ return softpipe->winsys->is_format_supported( softpipe->winsys, format ); -#endif } |