i965: Move GL_APPLE_object_purgeable functionality into a new file.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 1 Aug 2013 22:35:35 +0000 (15:35 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 17 Aug 2013 02:00:49 +0000 (19:00 -0700)
commit76c2533470ec805fdb45592c72becd632d8bf6d4
tree4fd2786ee22e2eddf20ba0f8cc26fa4eb7239310
parentaafb0f9e06a0e08ebb38a92ce2090739d380df71
i965: Move GL_APPLE_object_purgeable functionality into a new file.

GL_APPLE_object_purgeable creates a mechanism for marking OpenGL objects
as "purgeable" so they can be thrown away when system resources become
scarce.  It specifically applies to buffer objects, textures, and
renderbuffers.

The intel_buffer_objects.c file provides core functionality for GL
buffer objects, such as MapBufferRange and CopyBufferSubData.  Having
texture and renderbuffer functionality in that file is a bit strange.

The 2010 copyright on the new file is because Chris Wilson first added
this code in January 2010 (commit 755915fa).

v2: Actually remember to call the new dd table setup function.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_object_purgeable.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/intel_buffer_objects.c
src/mesa/drivers/dri/i965/intel_context.c