summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker')
-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 bffc39be87..d5e8581b21 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;