From: Brian Paul Date: Wed, 9 Jul 2014 18:50:21 +0000 (-0600) Subject: st/mesa: add PIPE_FORMAT_R10G10B10A2_UNORM to format_map table X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c03c6e016885e8b4e6cd93941693e6cf5afe74ce;p=mesa.git st/mesa: add PIPE_FORMAT_R10G10B10A2_UNORM to format_map table as a candidate for the GL_RGB10_A2 internal texture format. Reviewed-by: Marek Olšák --- diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index a8211809d54..409079bd453 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 },