gallium: add PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT
This is required for any serious constant buffer support. Constant buffer offsets on ATI and NVIDIA DX10 and DX11 GPUs must be a multiple of 256. In OpenGL, this can be queried via GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT.
This commit is contained in:
@@ -116,6 +116,8 @@ The integer capabilities:
|
||||
* ``PIPE_CAP_USER_CONSTANT_BUFFERS``: Whether user constant buffers are
|
||||
supported. If not, the state tracker must upload constants which are not in hw
|
||||
resources.
|
||||
* ``PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT``: Describes the required
|
||||
alignment of pipe_constant_buffer::buffer_offset.
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user