mesa: GL_EXT_texture_norm16 extension plumbing
authorTapani Pälli <tapani.palli@intel.com>
Fri, 6 Apr 2018 07:57:57 +0000 (10:57 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 25 Apr 2018 11:26:20 +0000 (14:26 +0300)
commit7f467d4f73828ba782a2db38c74d33b85646dc85
treebef23cd7feb9528863e4ab8acf43d3129eb6224a
parentb0c57740278f6c05b9b514e0011bb3646acd97ef
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 <tapani.palli@intel.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glsl_parser.yy
src/mesa/main/extensions_table.h
src/mesa/main/genmipmap.c
src/mesa/main/glformats.c
src/mesa/main/glformats.h
src/mesa/main/readpix.c
src/mesa/main/shaderimage.c