Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MESA_swap_control.spec 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. Name
  2. MESA_swap_control
  3. Name Strings
  4. GLX_MESA_swap_control
  5. Contact
  6. Ian Romanick, IBM, idr at us.ibm.com
  7. Status
  8. Deployed in DRI drivers post-XFree86 4.3.
  9. Version
  10. Date: 5/1/2003 Revision: 1.1
  11. Number
  12. ???
  13. Dependencies
  14. None
  15. Based on GLX_SGI_swap_control version 1.9 and WGL_EXT_swap_control
  16. version 1.5.
  17. Overview
  18. This extension allows an application to specify a minimum periodicity
  19. of color buffer swaps, measured in video frame periods.
  20. Issues
  21. * Should implementations that export GLX_MESA_swap_control also export
  22. GL_EXT_swap_control for compatibility with WGL_EXT_swap_control?
  23. UNRESOLVED.
  24. New Procedures and Functions
  25. int glXSwapIntervalMESA(int interval)
  26. int glXGetSwapIntervalMESA(void)
  27. New Tokens
  28. None
  29. Additions to Chapter 2 of the 1.4 GL Specification (OpenGL Operation)
  30. None
  31. Additions to Chapter 3 of the 1.4 GL Specification (Rasterization)
  32. None
  33. Additions to Chapter 4 of the 1.4 GL Specification (Per-Fragment Operations
  34. and the Framebuffer)
  35. None
  36. Additions to Chapter 5 of the 1.4 GL Specification (Special Functions)
  37. None
  38. Additions to Chapter 6 of the 1.4 GL Specification (State and State Requests)
  39. None
  40. Additions to the GLX 1.3 Specification
  41. [Add the following to Section 3.3.10 of the GLX Specification (Double
  42. Buffering)]
  43. glXSwapIntervalMESA specifies the minimum number of video frame periods
  44. per buffer swap. (e.g. a value of two means that the color buffers
  45. will be swapped at most every other video frame.) A return value
  46. of zero indicates success; otherwise an error occurred. The interval
  47. takes effect when glXSwapBuffers is first called subsequent to the
  48. glXSwapIntervalMESA call.
  49. A video frame period is the time required by the monitor to display a
  50. full frame of video data. In the case of an interlaced monitor,
  51. this is typically the time required to display both the even and odd
  52. fields of a frame of video data.
  53. If <interval> is set to a value of 0, buffer swaps are not synchron-
  54. ized to a video frame. The <interval> value is silently clamped to
  55. the maximum implementation-dependent value supported before being
  56. stored.
  57. The swap interval is not part of the render context state. It cannot
  58. be pushed or popped. The current swap interval for the window
  59. associated with the current context can be obtained by calling
  60. glXGetSwapIntervalMESA. The default swap interval is 0.
  61. On XFree86, setting the environment variable LIBGL_THROTTLE_REFRESH sets
  62. the swap interval to 1.
  63. Errors
  64. glXSwapIntervalMESA returns GLX_BAD_VALUE if parameter <interval> is
  65. less than zero.
  66. glXSwapIntervalMESA returns GLX_BAD_CONTEXT if there is no current
  67. GLXContext.
  68. GLX Protocol
  69. None. This extension only extends to direct rendering contexts.
  70. New State
  71. Get Value Get Command Type Initial Value
  72. --------- ----------- ---- -------------
  73. [swap interval] GetSwapInterval Z+ 0
  74. New Implementation Dependent State
  75. None
  76. Revision History
  77. 1.1, 5/1/03 Added the issues section and contact information.
  78. Changed the default swap interval to 0.
  79. 1.0, 3/17/03 Initial version based on GLX_SGI_swap_control and
  80. WGL_EXT_swap_control.