[Mesa-dev] [PATCH 1/2] mesa: check for MESA_FORMAT_RGB9_E5_FLOAT in _mesa_is_format_signed()
Marek Olšák
maraeo at gmail.com
Tue Jan 7 09:00:24 PST 2014
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Tue, Jan 7, 2014 at 5:35 PM, Brian Paul <brianp at vmware.com> wrote:
> This packed floating point format only stores positive values.
> ---
> src/mesa/main/formats.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
> index eb2a07e..7e0ec23 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 {
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list