summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-04-03 16:37:30 -0600
committerBrian <[email protected]>2008-04-03 16:37:30 -0600
commit1307eebfa07e3440554eb2871e5dbd94e98ed7a8 (patch)
treea13fad1b15516ebb45ed6d825262d46cf176b89f /src/mesa/state_tracker/st_extensions.c
parent766f3a545ebb317d2115b9053a8fc13b49ceec12 (diff)
gallium: test if PIPE_FORMAT_YCBCR[_REV] is supported and enable GL_MESA_ycbcr_texture
Update texture format selection code too.
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 20f4652413d..47a50d40ca1 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -220,4 +220,9 @@ void st_init_extensions(struct st_context *st)
ctx->Extensions.EXT_texture_compression_s3tc = GL_TRUE;
}
+ if (screen->is_format_supported(screen, PIPE_FORMAT_YCBCR, PIPE_TEXTURE) ||
+ screen->is_format_supported(screen, PIPE_FORMAT_YCBCR_REV, PIPE_TEXTURE)) {
+ ctx->Extensions.MESA_ycbcr_texture = GL_TRUE;
+ }
+
}