summaryrefslogtreecommitdiff
path: root/glx/glxcmds.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-04-24 12:49:19 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-04-24 12:49:19 -0700
commitff6c7764c2909e4126403b7211faa6c58556b341 (patch)
tree87301de7ca62ce0676def6b8c7ef2a75b8e10c98 /glx/glxcmds.c
parent28ddfc88d8d547941c7f4713db527a3c2f9ec35a (diff)
DRI2: Implement protocol for DRI2GetBuffersWithFormat
This change implements the protocol for DRI2GetBuffersWithFormat, but the bulk of the differences are the changes to the extension / driver interface to make this function work. The old CreateBuffers and DeleteBuffers routines are replaced with CreateBuffer and DeleteBuffer (both singular). This allows drivers to allocate buffers for a drawable one at a time. As a result, 3D drivers can now allocate the (fake) front-buffer for a window only when it is needed. Since 3D drivers only ask for the front-buffer on demand, the real front-buffer is always created. This allows CopyRegion impelemenations of SwapBuffers to continue working. As with previous version of this code, if the client asks for the front-buffer for a window, we instead give it the fake front-buffer. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
Diffstat (limited to 'glx/glxcmds.c')
0 files changed, 0 insertions, 0 deletions