diff options
author | bsalomon@google.com <bsalomon@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-10 17:39:34 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-10 17:39:34 +0000 |
commit | 3458a64a85abdd0d95678565bf7c6d20c67a0e4e (patch) | |
tree | f69e05075fd9dc458fc43cc93b64e02066637d35 /gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt | |
parent | 6d32cb06edeb614f99568027e06a32c13c6eb6bb (diff) | |
download | chromium_src-3458a64a85abdd0d95678565bf7c6d20c67a0e4e.zip chromium_src-3458a64a85abdd0d95678565bf7c6d20c67a0e4e.tar.gz chromium_src-3458a64a85abdd0d95678565bf7c6d20c67a0e4e.tar.bz2 |
Add GL_EXT_unpack_subimage support to command buffer client code.
BUG=121780
Review URL: https://chromiumcodereview.appspot.com/10012057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131579 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt')
-rw-r--r-- | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt | 75 |
1 files changed, 74 insertions, 1 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt index b51f541..7511fc4 100644 --- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_flipy.txt @@ -8,7 +8,7 @@ Name Strings Version - Last Modifed Date: July 22, 2011 + Last Modifed Date: April 9, 2012 Dependencies @@ -28,6 +28,77 @@ New Tokens UNPACK_FLIP_Y_CHROMIUM 0x9240 +Additions to the OpenGL ES 2.0 Specification + + Modifications to Table 3.1 (PixelStore Parameters) + + Add the following entry: + + Parameter Name Type Initial Value Valid Range + ============== ==== ============= =========== + UNPACK_FLIP_Y_CHROMIUM boolean FALSE {TRUE, FALSE} + + Modifications to 3.6.2 Transfer of Pixel Rectangles, in the Unpacking + section: + + Change + "If p indicates the location in memory of the first element of the first + row, then the first element of the Nth row is indicated by + p + Nk (3.9)" + to + "If p indicates the location in memory of the first element of the first + row, then the first element of the Nth row is indicated by + p + Nk (3.9) + if UNPACK_FLIP_Y is FALSE. Otherwise, the first element of the Nth row + is indicated by + p - Nk (3.10) + + After the sentence + + "If the number of bits per element is not 1, 2, 4, or 8 times the number + of bits in a GL ubyte, then k = nl for all values of a." + + insert: + + "If UNPACK_FLIP_Y_CHROMIUM is FALSE then p is equal to pixels. Otherwise + p is pixels + (height - 1)k." + +Interactions with GL_EXT_unpack_subimage + + Do not add the sentence "If UNPACK_FLIP_Y_CHROMIUM is FALSE ..." described + in this extension. Instead do the following after applying + GL_EXT_unpack_subimage: + + Change + + "There is a mechanism for selecting a sub-rectangle of groups + from a larger containing rectangle. This mechanism relies on + three integer parameters: UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, + and UNPACK_SKIP_PIXELS. Before obtaining the first group from + memory, the pointer supplied to TexImage2D is effectively + advanced by (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS)k + elements. Then <width> groups are obtained from contiguous + elements in memory (without advancing the pointer), after + which the pointer is advanced by k elements. <height> sets of + <width> groups of values are obtained this way. See figure + 3.6." + + to + + "There is a mechanism for selecting a sub-rectangle of groups + from a larger containing rectangle. This mechanism relies on + three integer parameters: UNPACK_ROW_LENGTH, UNPACK_SKIP_ROWS, + and UNPACK_SKIP_PIXELS. IF UNPACK_FLIP_Y_CHROMIUM is FALSE then + p, the location of the first element of the first + group, is pixels + (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS)k. + When UNPACK_FLIP_Y_CHROMIUM is TRUE then p is pixels + + (UNPACK_SKIP_PIXELS)n + (UNPACK_SKIP_ROWS + height - 1)k. After + p is determined <width> groups are obtained from contiguous + elements in memory (without advancing the pointer), after which + the pointer is advanced by +/-k elements depending on the value + of UNPACK_CHROMIUM_FLIP_Y. <height> sets of <width> groups of + values are obtained this way. See figure 3.6." + New Procedures and Functions None. @@ -43,3 +114,5 @@ New State Revision History 7/22/2011 Documented the extension + 4/09/2012 Added more documentation and described interactions with + GL_EXT_unpack_subimage |