mesa: implement GL_AMD_pinned_memory
authorMarek Olšák <marek.olsak@amd.com>
Tue, 10 Feb 2015 00:39:41 +0000 (01:39 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 17 Feb 2015 16:31:48 +0000 (17:31 +0100)
commit11ebb03c26a7af4e975f5611303f6caf98f8a315
tree43cea246789fbc9237b7e8a2c3ea5deada4cb21e
parent4fa61b1a23ab0128d3791541403ee020fbef3d4c
mesa: implement GL_AMD_pinned_memory

It's not possible to query the current buffer binding, because the extension
doesn't define GL_..._BUFFER__BINDING_AMD.

Drivers should check the target parameter of Drivers.BufferData. If it's
equal to GL_EXTERNAL_VIRTUAL_MEMORY_BUFFER_AMD, the memory should be pinned.
That's all there is to it.

A piglit test is on the piglit mailing list.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/bufferobj.c
src/mesa/main/extensions.c
src/mesa/main/mtypes.h