Mesa (master): mesa: Add fallback from RGB_FLOAT16 to RGBA_FLOAT16 before RGBA_FLOAT32.
Eric Anholt
anholt at kemper.freedesktop.org
Tue Nov 22 22:09:48 UTC 2011
Module: Mesa
Branch: master
Commit: babe26b3efa56f1afd139d5cfecbadb857a43d8f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=babe26b3efa56f1afd139d5cfecbadb857a43d8f
Author: Eric Anholt <eric at anholt.net>
Date: Sun Nov 6 18:08:36 2011 -0800
mesa: Add fallback from RGB_FLOAT16 to RGBA_FLOAT16 before RGBA_FLOAT32.
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 at whitecape.org>
---
src/mesa/main/texformat.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index aebe38e..38571b8 100644
--- 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;
More information about the mesa-commit
mailing list