OSDN Git Service

mesa: implement GL_ARB_texture_buffer_range
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 25 Jan 2013 13:54:05 +0000 (14:54 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 30 Jan 2013 12:10:10 +0000 (13:10 +0100)
commit785a8c3bebac838b675ac891aaadff4efcb504d8
tree18becea782e5b47da3f91205bb17378fc9cf9f6f
parent02b6da1e87ddf333a71b37234c356b3f3f7f58be
mesa: implement GL_ARB_texture_buffer_range

v2: Record texObj.BufferSize as -1 in TexBuffer(non-Range) instead
of the buffer's current size so we know we always have to use the
full size of the buffer object (i.e. even if it changes without the
user calling TexBuffer again) for the texture.

Clarify invalid offset alignment error message.

v3: Use extra GL_CORE-only section in get_hash_params.py for
TEXTURE_BUFFER_OFFSET_ALIGNMENT.

v4: Remove unnecessary check for profile in _mesa_TexBufferRange.
Add check for extension enable in get_tex_level_parameter_buffer.

v5: Fix position in gl_API.xml.
Add comment about meaning of BufferSize == -1.

v6: Add back checks for core profile and add a note about it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mapi/glapi/gen/ARB_texture_buffer_range.xml [new file with mode: 0644]
src/mapi/glapi/gen/Makefile.am
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/context.c
src/mesa/main/extensions.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h
src/mesa/main/teximage.c
src/mesa/main/teximage.h
src/mesa/main/texparam.c