summaryrefslogtreecommitdiff
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-02-10 01:39:41 +0100
committerMarek Olšák <marek.olsak@amd.com>2015-02-17 17:31:48 +0100
commit11ebb03c26a7af4e975f5611303f6caf98f8a315 (patch)
tree43cea246789fbc9237b7e8a2c3ea5deada4cb21e /src/mesa/main/extensions.c
parent4fa61b1a23ab0128d3791541403ee020fbef3d4c (diff)
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>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 220b220d66..685236a919 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -335,6 +335,7 @@ static const struct extension extension_table[] = {
{ "GL_AMD_conservative_depth", o(ARB_conservative_depth), GL, 2009 },
{ "GL_AMD_draw_buffers_blend", o(ARB_draw_buffers_blend), GL, 2009 },
{ "GL_AMD_performance_monitor", o(AMD_performance_monitor), GL, 2007 },
+ { "GL_AMD_pinned_memory", o(AMD_pinned_memory), GL, 2013 },
{ "GL_AMD_seamless_cubemap_per_texture", o(AMD_seamless_cubemap_per_texture), GL, 2009 },
{ "GL_AMD_shader_stencil_export", o(ARB_shader_stencil_export), GL, 2009 },
{ "GL_AMD_shader_trinary_minmax", o(dummy_true), GL, 2012 },