[Mesa-dev] [PATCH 2/2] st/mesa: add PIPE_FORMAT_R10G10B10A2_UNORM to format_map table
Brian Paul
brianp at vmware.com
Wed Jul 9 11:51:31 PDT 2014
as a candidate for the GL_RGB10_A2 internal texture format.
---
src/mesa/state_tracker/st_format.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index a821180..409079b 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -861,7 +861,8 @@ static const struct format_mapping format_map[] = {
},
{
{ GL_RGB10_A2, 0 },
- { PIPE_FORMAT_B10G10R10A2_UNORM, DEFAULT_RGBA_FORMATS }
+ { PIPE_FORMAT_B10G10R10A2_UNORM, PIPE_FORMAT_R10G10B10A2_UNORM,
+ DEFAULT_RGBA_FORMATS }
},
{
{ 4, GL_RGBA, GL_RGBA8, 0 },
--
1.7.10.4
More information about the mesa-dev
mailing list