summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-10-29 10:37:12 -0600
committerBrian <[email protected]>2007-10-29 10:37:12 -0600
commitd37eb130c090abc413a54e57e0d3800ac4cd59f4 (patch)
treec009da318c9a9aa52301e42d705a0874e7e66c2f
parentebe1642d7a65acd5e41632b3b23655f67de85cfc (diff)
remove dead code
-rw-r--r--src/mesa/state_tracker/st_format.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index bffc39be87b..d5e8581b215 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -103,83 +103,6 @@ st_get_format_info(
GLuint format,
struct pipe_format_info *pinfo )
{
-#if 0
- static const struct pipe_format_info info[] = {
- {
- PIPE_FORMAT_U_R8_G8_B8_A8, /* format */
- GL_RGBA, /* base_format */
- GL_UNSIGNED_BYTE, /* datatype for renderbuffers */
- 8, 8, 8, 8, 0, 0, /* color bits */
- 0, 0, /* depth, stencil */
- 4 /* size in bytes */
- },
- {
- PIPE_FORMAT_U_A8_R8_G8_B8,
- GL_RGBA, /* base_format */
- GL_UNSIGNED_BYTE, /* datatype for renderbuffers */
- 8, 8, 8, 8, 0, 0, /* color bits */
- 0, 0, /* depth, stencil */
- 4 /* size in bytes */
- },
- {
- PIPE_FORMAT_U_A1_R5_G5_B5,
- GL_RGBA, /* base_format */
- GL_UNSIGNED_SHORT, /* datatype for renderbuffers */
- 5, 5, 5, 1, 0, 0, /* color bits */
- 0, 0, /* depth, stencil */
- 2 /* size in bytes */
- },
- {
- PIPE_FORMAT_U_R5_G6_B5,
- GL_RGBA, /* base_format */
- GL_UNSIGNED_SHORT, /* datatype for renderbuffers */
- 5, 6, 5, 0, 0, 0, /* color bits */
- 0, 0, /* depth, stencil */
- 2 /* size in bytes */
- },
- {
- PIPE_FORMAT_S_R16_G16_B16_A16,
- GL_RGBA, /* base_format */
- GL_UNSIGNED_SHORT, /* datatype for renderbuffers */
- 16, 16, 16, 16, 0, 0, /* color bits */
- 0, 0, /* depth, stencil */
- 8 /* size in bytes */
- },
- {
- PIPE_FORMAT_U_Z16,
- GL_DEPTH_COMPONENT, /* base_format */
- GL_UNSIGNED_SHORT, /* datatype for renderbuffers */
- 0, 0, 0, 0, 0, 0, /* color bits */
- 16, 0, /* depth, stencil */
- 2 /* size in bytes */
- },
- {
- PIPE_FORMAT_U_Z32,
- GL_DEPTH_COMPONENT, /* base_format */
- GL_UNSIGNED_INT, /* datatype for renderbuffers */
- 0, 0, 0, 0, 0, 0, /* color bits */
- 32, 0, /* depth, stencil */
- 4 /* size in bytes */
- },
- {
- PIPE_FORMAT_S8_Z24,
- GL_DEPTH_STENCIL_EXT, /* base_format */
- GL_UNSIGNED_INT, /* datatype for renderbuffers */
- 0, 0, 0, 0, 0, 0, /* color bits */
- 24, 8, /* depth, stencil */
- 4 /* size in bytes */
- }
- /* XXX lots more cases to add */
- };
- GLuint i;
-
- for (i = 0; i < sizeof(info) / sizeof(info[0]); i++) {
- if (info[i].format == format)
- return info + i;
- }
- return NULL;
-#endif
-
union pipe_format fmt;
fmt.value32 = format;