summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-12-21 05:45:46 +0100
committerMarek Olšák <maraeo@gmail.com>2010-12-23 16:54:58 +0100
commit888e59fce85b3c30cb91063a4b7b594dd9bcccf9 (patch)
tree28a7554c1eac7c9e50a869debf1290af71fbe842 /src/mesa
parent3f9e78ac390a095d42f94b8edc02016f18b255dd (diff)
st/mesa: use RGBA16 for RGB12 and RGB16
To provide enough precision if a user wants it.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 531fa948d5..a79d4c0c4e 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -480,6 +480,8 @@ st_choose_format(struct pipe_screen *screen, GLenum internalFormat,
case GL_RGB:
return default_rgb_format( screen, target, sample_count, bindings,
geom_flags );
+ case GL_RGB12:
+ case GL_RGB16:
case GL_RGBA12:
case GL_RGBA16:
if (screen->is_format_supported( screen, PIPE_FORMAT_R16G16B16A16_UNORM,
@@ -508,8 +510,6 @@ st_choose_format(struct pipe_screen *screen, GLenum internalFormat,
case GL_RGB8:
case GL_RGB10:
- case GL_RGB12:
- case GL_RGB16:
return default_rgb_format( screen, target, sample_count, bindings,
geom_flags );