[Mesa-dev] [PATCH] mesa: add TBO support for GL_EXT_texture_norm16

Kenneth Graunke kenneth at whitecape.org
Fri Apr 27 07:10:54 UTC 2018


On Thursday, April 26, 2018 11:52:33 PM PDT Tapani Pälli wrote:
> Earlier plumbing missed interaction with texture buffer objects.
> 
> Fixes: 7f467d4f73 "mesa: GL_EXT_texture_norm16 extension plumbing"
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
>  src/mesa/main/teximage.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 5284e60b20..f6bfca65ed 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -5345,7 +5345,7 @@ _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
>     case GL_RGBA8:
>        return MESA_FORMAT_R8G8B8A8_UNORM;
>     case GL_RGBA16:
> -      if (_mesa_is_gles(ctx))
> +      if (_mesa_is_gles(ctx) && !_mesa_has_EXT_texture_norm16(ctx))
>           return MESA_FORMAT_NONE;
>        return MESA_FORMAT_RGBA_UNORM16;
>     case GL_RGBA16F_ARB:
> @@ -5368,7 +5368,7 @@ _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
>     case GL_RG8:
>        return MESA_FORMAT_R8G8_UNORM;
>     case GL_RG16:
> -      if (_mesa_is_gles(ctx))
> +      if (_mesa_is_gles(ctx) && !_mesa_has_EXT_texture_norm16(ctx))
>           return MESA_FORMAT_NONE;
>        return MESA_FORMAT_R16G16_UNORM;
>     case GL_RG16F:
> @@ -5391,7 +5391,7 @@ _mesa_get_texbuffer_format(const struct gl_context *ctx, GLenum internalFormat)
>     case GL_R8:
>        return MESA_FORMAT_R_UNORM8;
>     case GL_R16:
> -      if (_mesa_is_gles(ctx))
> +      if (_mesa_is_gles(ctx) && !_mesa_has_EXT_texture_norm16(ctx))
>           return MESA_FORMAT_NONE;
>        return MESA_FORMAT_R_UNORM16;
>     case GL_R16F:
> 

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180427/9d26789e/attachment.sig>


More information about the mesa-dev mailing list