projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9e78a
)
st/mesa: use RGBA16 for RGB12 and RGB16
author
Marek Olšák
<maraeo@gmail.com>
Tue, 21 Dec 2010 04:45:46 +0000
(
05:45
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 23 Dec 2010 15:54:58 +0000
(16:54 +0100)
To provide enough precision if a user wants it.
src/mesa/state_tracker/st_format.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_format.c
b/src/mesa/state_tracker/st_format.c
index 531fa948d5065a48cd10ef554392031fcdb872f4..a79d4c0c4e94f6962f6c21c735e4513ee7eb526a 100644
(file)
--- 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 );