mesa/st: initial attempt at RG support for gallium drivers

passes all piglit RG tests with softpipe.
This commit is contained in:
Dave Airlie
2010-08-11 19:04:05 +10:00
parent f317713432
commit 71a079fb4e
4 changed files with 93 additions and 1 deletions

View File

@@ -373,6 +373,12 @@ void st_init_extensions(struct st_context *st)
ctx->Extensions.EXT_texture_sRGB = GL_TRUE;
}
if (screen->is_format_supported(screen, PIPE_FORMAT_R8G8_UNORM,
PIPE_TEXTURE_2D, 0,
PIPE_BIND_SAMPLER_VIEW, 0)) {
ctx->Extensions.ARB_texture_rg = GL_TRUE;
}
/* s3tc support */
if (screen->is_format_supported(screen, PIPE_FORMAT_DXT5_RGBA,
PIPE_TEXTURE_2D, 0,