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_packed_depth_stencil.spec 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. Name
  2. MESA_packed_depth_stencil
  3. Name Strings
  4. GL_MESA_packed_depth_stencil
  5. Contact
  6. Keith Whitwell, VA Linux Systems Inc. (keithw 'at' valinux.com)
  7. Brian Paul, VA Linux Systems Inc. (brianp 'at' valinux.com)
  8. Status
  9. Obsolete.
  10. Version
  11. $Id: MESA_packed_depth_stencil.spec,v 1.2 2003/09/19 14:58:21 brianp Exp $
  12. Number
  13. ???
  14. Dependencies
  15. EXT_abgr affects the definition of this extension
  16. SGIS_texture4D affects the definition of this extension
  17. EXT_cmyka affects the definition of this extension
  18. ARB_packed_pixels affects the definition of this extension
  19. Overview
  20. Provides a mechanism for DrawPixels and ReadPixels to efficiently
  21. transfer depth and stencil image data. Specifically, we defined new
  22. packed pixel formats and types which pack both stencil and depth
  23. into one value.
  24. Issues:
  25. 1. Is this the right way to distinguish between 24/8 and 8/24
  26. pixel formats? Should we instead provide both:
  27. GL_DEPTH_STENCIL_MESA
  28. GL_STENCIL_DEPTH_MESA
  29. And perhaps just use GL_UNSIGNED_INT, GL_UNSIGNED_SHORT ?
  30. 2. If not, is it correct to use _REV to indicate that stencil
  31. preceeds depth in the 1_15 and 8_24 formats?
  32. 3. Do we really want the GL_UNSIGNED_SHORT formats?
  33. New Procedures and Functions
  34. None.
  35. New Tokens
  36. Accepted by the <format> parameter of ReadPixels and DrawPixels:
  37. GL_DEPTH_STENCIL_MESA 0x8750
  38. Accepted by the <type> parameter of ReadPixels and DrawPixels:
  39. GL_UNSIGNED_INT_24_8_MESA 0x8751
  40. GL_UNSIGNED_INT_8_24_REV_MESA 0x8752
  41. GL_UNSIGNED_SHORT_15_1_MESA 0x8753
  42. GL_UNSIGNED_SHORT_1_15_REV_MESA 0x8754
  43. Additions to Chapter 2 of the 1.1 Specification (OpenGL Operation)
  44. None
  45. Additions to Chapter 3 of the 1.1 Specification (Rasterization)
  46. One entry is added to table 3.5 (DrawPixels and ReadPixels formats).
  47. The new table is:
  48. Target
  49. Format Name Buffer Element Meaning and Order
  50. ----------- ------ -------------------------
  51. COLOR_INDEX Color Color index
  52. STENCIL_INDEX Stencil Stencil index
  53. DEPTH_COMPONENT Depth Depth component
  54. RED Color R component
  55. GREEN Color G component
  56. BLUE Color B component
  57. ALPHA Color A component
  58. RGB Color R, G, B components
  59. RGBA Color R, G, B, A components
  60. BGRA Color B, G, R, A components
  61. ABGR_EXT Color A, B, G, R components
  62. CMYK_EXT Color Cyan, Magenta, Yellow, Black components
  63. CMYKA_EXT Color Cyan, Magenta, Yellow, Black, A components
  64. LUMINANCE Color Luminance component
  65. LUMINANCE_ALPHA Color Luminance, A components
  66. DEPTH_STENCIL Depth, Depth component, stencil index.
  67. Stencil
  68. Table 3.5: DrawPixels and ReadPixels formats. The third column
  69. gives a description of and the number and order of elements in a
  70. group.
  71. Add to the description of packed pixel formats:
  72. <type> Parameter Data of Matching
  73. Token Name Type Elements Pixel Formats
  74. ---------------- ---- -------- -------------
  75. UNSIGNED_BYTE_3_3_2 ubyte 3 RGB
  76. UNSIGNED_BYTE_2_3_3_REV ubyte 3 RGB
  77. UNSIGNED_SHORT_5_6_5 ushort 3 RGB
  78. UNSIGNED_SHORT_5_6_5_REV ushort 3 RGB
  79. UNSIGNED_SHORT_4_4_4_4 ushort 4 RGBA,BGRA,ABGR_EXT,CMYK_EXT
  80. UNSIGNED_SHORT_4_4_4_4_REV ushort 4 RGBA,BGRA
  81. UNSIGNED_SHORT_5_5_5_1 ushort 4 RGBA,BGRA,ABGR_EXT,CMYK_EXT
  82. UNSIGNED_SHORT_1_5_5_5_REV ushort 4 RGBA,BGRA
  83. UNSIGNED_INT_8_8_8_8 uint 4 RGBA,BGRA,ABGR_EXT,CMYK_EXT
  84. UNSIGNED_INT_8_8_8_8_REV uint 4 RGBA,BGRA
  85. UNSIGNED_INT_10_10_10_2 uint 4 RGBA,BGRA,ABGR_EXT,CMYK_EXT
  86. UNSIGNED_INT_2_10_10_10_REV uint 4 RGBA,BGRA
  87. UNSIGNED_SHORT_15_1_MESA ushort 2 DEPTH_STENCIL_MESA
  88. UNSIGNED_SHORT_1_15_REV_MESA ushort 2 DEPTH_STENCIL_MESA
  89. UNSIGNED_SHORT_24_8_MESA ushort 2 DEPTH_STENCIL_MESA
  90. UNSIGNED_SHORT_8_24_REV_MESA ushort 2 DEPTH_STENCIL_MESA
  91. UNSIGNED_INT_8_24:
  92. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  93. +-----------------------+-----------------------------------------------------------------------+
  94. | | |
  95. +-----------------------+-----------------------------------------------------------------------+
  96. first second
  97. element element
  98. UNSIGNED_INT_24_8:
  99. 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  100. +----------------------------------------------------------------------+------------------------+
  101. | | |
  102. +----------------------------------------------------------------------+------------------------+
  103. first second
  104. element element
  105. UNSIGNED_SHORT_15_1:
  106. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  107. +-----------------------------------------------------------+---+
  108. | | |
  109. +-----------------------------------------------------------+---+
  110. first second
  111. element element
  112. UNSIGNED_SHORT_1_15_REV:
  113. 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
  114. +---+-----------------------------------------------------------+
  115. | | |
  116. +---+-----------------------------------------------------------+
  117. second first
  118. element element
  119. The assignment of elements to fields in the packed pixel is as
  120. described in the table below:
  121. First Second Third Fourth
  122. Format Element Element Element Element
  123. ------ ------- ------- ------- -------
  124. RGB red green blue
  125. RGBA red green blue alpha
  126. BGRA blue green red alpha
  127. ABGR_EXT alpha blue green red
  128. CMYK_EXT cyan magenta yellow black
  129. DEPTH_STENCIL_MESA depth stencil
  130. Additions to Chapter 4 of the 1.1 Specification (Per-Fragment Operations
  131. and the Frame Buffer)
  132. The new format is added to the discussion of Obtaining Pixels from the
  133. Framebuffer. It should read " If the <format> is one of RED, GREEN,
  134. BLUE, ALPHA, RGB, RGBA, ABGR_EXT, LUMINANCE, or LUMINANCE_ALPHA, and
  135. the GL is in color index mode, then the color index is obtained."
  136. The new format is added to the discussion of Index Lookup. It should
  137. read "If <format> is one of RED, GREEN, BLUE, ALPHA, RGB, RGBA,
  138. ABGR_EXT, LUMINANCE, or LUMINANCE_ALPHA, then the index is used to
  139. reference 4 tables of color components: PIXEL_MAP_I_TO_R,
  140. PIXEL_MAP_I_TO_G, PIXEL_MAP_I_TO_B, and PIXEL_MAP_I_TO_A."
  141. Additions to Chapter 5 of the 1.1 Specification (Special Functions)
  142. None
  143. Additions to Chapter 6 of the 1.1 Specification (State and State Requests)
  144. None
  145. Additions to the GLX Specification
  146. None
  147. GLX Protocol
  148. TBD
  149. Errors
  150. None
  151. New State
  152. None
  153. Revision History
  154. Version 1.0 - 23 Sep 2000
  155. Keith's original version.
  156. Version 1.1 - 3 Nov 2000
  157. Brian's edits, assigned values to new enums.