gallium: add PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Sun, 16 Dec 2012 16:23:15 +0000 (17:23 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 30 Jan 2013 12:10:11 +0000 (13:10 +0100)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h

index 7a17f69dbfd7562277a0fa95272d3c6a1f5175b0..68d1a35cc7396785fbe40e2747a3a85e67e94ff1 100644 (file)
@@ -134,6 +134,9 @@ The integer capabilities:
   expected for a pointer returned by transfer_map if the resource is
   PIPE_BUFFER. In other words, the pointer returned by transfer_map is
   always aligned to this value.
+* ``PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT``: Describes the required
+  alignment for pipe_sampler_view::u.buf.first_element, in bytes.
+  If a driver does not support first/last_element, it should return 0.
 
 
 .. _pipe_capf:
index bd08ac0895a7cea33509ae3483373595cc138d2c..d0db5e4bceeda7b77b401c22f0b245e528d8bc4b 100644 (file)
@@ -497,7 +497,8 @@ enum pipe_cap {
    PIPE_CAP_TEXTURE_MULTISAMPLE = 74,
    PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT = 75,
    PIPE_CAP_CUBE_MAP_ARRAY = 76,
-   PIPE_CAP_TEXTURE_BUFFER_OBJECTS = 77
+   PIPE_CAP_TEXTURE_BUFFER_OBJECTS = 77,
+   PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 78
 };
 
 /**