diff options
author | Tapani Pälli <[email protected]> | 2018-04-06 10:57:57 +0300 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2018-04-25 14:26:20 +0300 |
commit | 7f467d4f73828ba782a2db38c74d33b85646dc85 (patch) | |
tree | bef23cd7feb9528863e4ab8acf43d3129eb6224a /src/mesa/main/glformats.h | |
parent | b0c57740278f6c05b9b514e0011bb3646acd97ef (diff) |
mesa: GL_EXT_texture_norm16 extension plumbing
Patch enables use of short and unsigned short data for texture uploads,
rendering and reading of framebuffers within the restrictions specified
in GL_EXT_texture_norm16 spec.
Patch also enables those 16bit format layout qualifiers listed in
GL_NV_image_formats that depend on EXT_texture_norm16.
v2: expose extension with dummy_true
fix layout qualifier map changes (Ilia Mirkin)
v3: use _mesa_has_EXT_texture_norm16, other fixes
and cleanup (Ilia Mirkin)
v4: fix rest of the issues found
Signed-off-by: Tapani Pälli <[email protected]>
Acked-by: Ilia Mirkin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.h')
-rw-r--r-- | src/mesa/main/glformats.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.h b/src/mesa/main/glformats.h index 844f1e270c0..5a21317159d 100644 --- a/src/mesa/main/glformats.h +++ b/src/mesa/main/glformats.h @@ -155,7 +155,8 @@ _mesa_tex_format_from_format_and_type(const struct gl_context *ctx, GLenum gl_format, GLenum type); extern bool -_mesa_is_es3_color_renderable(GLenum internal_format); +_mesa_is_es3_color_renderable(const struct gl_context *ctx, + GLenum internal_format); extern bool _mesa_is_es3_texture_filterable(const struct gl_context *ctx, |