summaryrefslogtreecommitdiff
path: root/dri2proto.h
AgeCommit message (Collapse)Author
2012-05-21dri2proto: Add DRI2GetParam requestChad Versace
Bump protocol version to 1.4. Bump package version to 2.7. This new protocol request effectively allows clients to perform feature detection on the DDX. If I had DRI2GetParam in June 2011, when I was implementing support in the Intel DDX and Mesa for new hardware that required a new DRI2 attachment format, then I could have avoided a week of pain caused by the necessity to write a horrid feature detection hack [1] in Mesa. In the future, when the work begins to add MSAA support to the Intel DDX, having a clean way to do feature detection will allow us to avoid revisiting and expanding that hack. [1] mesa, commit aea2236a, function intel_verify_dri2_has_hi Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <idr@freedesktop.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2011-05-19dri2proto: add a new DRI2BufferSwapComplete struct that matches the specJesse Barnes
Just add a new struct to remain compatible with existing code. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-05-05Revert "dri2proto: make DRI2 swap event match GLX spec"Jesse Barnes
This reverts commit 0ca3778de195a82087d0f07415a1cf8fc94f5b0a. This broke compatibility by renaming existing struct fields. So revert in favor of a new struct.
2011-05-03dri2proto: make DRI2 swap event match GLX specJesse Barnes
We only spec a 32 bit sbc count, so drop the high bits. Also make the padding explicit. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2010-02-15Define an event to notify clients about the validity of their buffers.Francisco Jerez
Bumps the protocol and package versions. Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2009-11-12Add DRI2 event support for DRI2BufferSwapCompleteJesse Barnes
2009-11-11Pad out DRI2 swap buffers replyJesse Barnes
2009-11-10Add DRI2SwapInterval protocolJesse Barnes
Needed to handle swap interval in the direct rendered case.
2009-10-02Fix DRI2SwapBuffers reply lengthJesse Barnes
Length should be a CARD32 and match the endianness annotation. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-10-01Add swap interval and synchronization supportJesse Barnes
Based on SGI_video_sync, SGI_swap_control and OML_sync_control, add swap interval and synchronization support to DRI2. Useful for throttling rendering and basic performance metrics. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2009-06-03Make swapbuffers an async requestKristian Høgsberg
The protocol now require a DRI2GetBuffersWithFormat request to follow the swapbuffer request so.
2009-05-01Add SwapBuffers requestJesse Barnes
Add a SwapBuffers request for requesting a front<->back swap. Returns a whole new set of buffers to the client to allow for triple buffering etc.
2009-04-24Add protocol for DRI2GetBuffersWithFormatIan Romanick
This function replaces DRI2GetBuffers. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2008-12-01Bump to 1.99.3 and back out the value bitmask from the CopyRegion request.Kristian Høgsberg
2008-10-14Add protocol documentation, update to DRI2CopyRegion request.Kristian Høgsberg
2008-08-28Update to 1.99.1 - drop sarea and perform swap buffer in X server.Kristian Høgsberg
Still to resolve is the swap buffer request. It should probably be broken into two requests, one to post the swap request and one to wait for it to be completed. Also, need to find a good solution to CopySubBuffer that doesn't require a roundtrip per rectangle. Don't need to solve all this for 2.0, though, can add requests later on.
2008-03-26Add reemitDrawableInfo protocol.Kristian Høgsberg
Also, remove the screen number where it's redundant and rename drmDrawable in the create drawable request to just 'handle' now that we don't rely on drm drawables.
2008-03-12Fix typo in xDRI2QueryVersionReq req type field.Kristian Høgsberg
2008-03-12Initial commit.Kristian Høgsberg