mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
gallium: add PIPE_CAP_TEXTURE_BUFFER_OFFSET_ALIGNMENT
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
785a8c3beb
commit
0fcd2c5e2f
2 changed files with 5 additions and 1 deletions
|
|
@ -134,6 +134,9 @@ The integer capabilities:
|
||||||
expected for a pointer returned by transfer_map if the resource is
|
expected for a pointer returned by transfer_map if the resource is
|
||||||
PIPE_BUFFER. In other words, the pointer returned by transfer_map is
|
PIPE_BUFFER. In other words, the pointer returned by transfer_map is
|
||||||
always aligned to this value.
|
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:
|
.. _pipe_capf:
|
||||||
|
|
|
||||||
|
|
@ -497,7 +497,8 @@ enum pipe_cap {
|
||||||
PIPE_CAP_TEXTURE_MULTISAMPLE = 74,
|
PIPE_CAP_TEXTURE_MULTISAMPLE = 74,
|
||||||
PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT = 75,
|
PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT = 75,
|
||||||
PIPE_CAP_CUBE_MAP_ARRAY = 76,
|
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
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue