diff options
author | Marek Olšák <[email protected]> | 2019-07-03 18:51:24 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-07-15 14:58:23 -0400 |
commit | fc4302d1dfe4fe724df250d0de1fcf0f60953c99 (patch) | |
tree | b8fe616f5eafb71a2fb087eca81061b5d76026df /src/gallium/include | |
parent | 5e76c9992317f20f89fafe3aab03026ca550766e (diff) |
gallium: use MAP_DIRECTLY to mean supression of DISCARD in buffer_subdata
This is needed to fix an issue with OpenGL when a buffer is mapped and
BufferSubData is called. In this case, we can't invalidate the buffer range.
Diffstat (limited to 'src/gallium/include')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index d3afd442046..d6e33ce9daa 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -261,6 +261,8 @@ enum pipe_transfer_usage * E.g. the state tracker could have a simpler path which maps textures and * does read/modify/write cycles on them directly, and a more complicated * path which uses minimal read and write transfers. + * + * This flag supresses implicit "DISCARD" for buffer_subdata. */ PIPE_TRANSFER_MAP_DIRECTLY = (1 << 2), |