diff options
author | Brian Paul <[email protected]> | 2014-01-07 09:05:03 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-01-09 11:35:50 -0700 |
commit | 0fc8d7c66e08c295b701586afdc1f6d86eb8a514 (patch) | |
tree | 21b98c542d942b151fa9e9232bc133402033fb5a /src/mesa | |
parent | d81d263eeb1cdcc4cb24a6c8d6b9c2dae60fa06e (diff) |
mesa: check for MESA_FORMAT_RGB9_E5_FLOAT in _mesa_is_format_signed()
This packed floating point format only stores positive values.
Bugzilla: http://bugs.freedesktop.org/show_bug.cgi?id=73096
Cc: 10.0 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/formats.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index eb2a07ea5f6..7e0ec23198c 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -1972,8 +1972,9 @@ _mesa_is_format_unsigned(gl_format format) GLboolean _mesa_is_format_signed(gl_format format) { - if (format == MESA_FORMAT_R11_G11_B10_FLOAT) { - /* this packed float format only stores unsigned values */ + if (format == MESA_FORMAT_R11_G11_B10_FLOAT || + format == MESA_FORMAT_RGB9_E5_FLOAT) { + /* these packed float formats only store unsigned values */ return GL_FALSE; } else { |