projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d159e6
)
mesa: Add fallback from RGB_FLOAT16 to RGBA_FLOAT16 before RGBA_FLOAT32.
author
Eric Anholt
<eric@anholt.net>
Mon, 7 Nov 2011 02:08:36 +0000
(18:08 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 22 Nov 2011 21:58:38 +0000
(13:58 -0800)
Not all i965 hardware can do RGB float16, and this will at least save
half the memory and have expected behavior in terms of precision.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texformat.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texformat.c
b/src/mesa/main/texformat.c
index aebe38ee0bfb5c94bdabe2ce3aacc68872363e7a..38571b837605f8699e1c9ff6019162d0fa40a30c 100644
(file)
--- a/
src/mesa/main/texformat.c
+++ b/
src/mesa/main/texformat.c
@@
-356,6
+356,7
@@
_mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
break;
case GL_RGB16F_ARB:
RETURN_IF_SUPPORTED(MESA_FORMAT_RGB_FLOAT16);
+ RETURN_IF_SUPPORTED(MESA_FORMAT_RGBA_FLOAT16);
RETURN_IF_SUPPORTED(MESA_FORMAT_RGB_FLOAT32);
RETURN_IF_SUPPORTED(MESA_FORMAT_RGBA_FLOAT32);
break;