mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/mesa: Set PIPE_TRANSFER_DISCARD for GL_MAP_INVALIDATE_RANGE/BUFFFER_BIT
Signed-off-by: Brian Paul <brianp@vmware.com> Note: this is a candidate for the 7.9 branch.
This commit is contained in:
parent
97ae4dad1c
commit
c3602ff5ed
1 changed files with 6 additions and 0 deletions
|
|
@ -279,6 +279,12 @@ st_bufferobj_map_range(struct gl_context *ctx, GLenum target,
|
|||
|
||||
if (access & GL_MAP_FLUSH_EXPLICIT_BIT)
|
||||
flags |= PIPE_TRANSFER_FLUSH_EXPLICIT;
|
||||
|
||||
if (access & GL_MAP_INVALIDATE_RANGE_BIT)
|
||||
flags |= PIPE_TRANSFER_DISCARD;
|
||||
|
||||
if (access & GL_MAP_INVALIDATE_BUFFER_BIT)
|
||||
flags |= PIPE_TRANSFER_DISCARD;
|
||||
|
||||
if (access & GL_MAP_UNSYNCHRONIZED_BIT)
|
||||
flags |= PIPE_TRANSFER_UNSYNCHRONIZED;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue