diff options
author | Thomas Hellstrom <[email protected]> | 2019-04-11 10:10:04 +0200 |
---|---|---|
committer | Thomas Hellstrom <[email protected]> | 2019-06-20 09:30:22 +0200 |
commit | 3b828c4e68bf4addd3b70cd6df92b80e9a40a7a7 (patch) | |
tree | 58a73aba894b792fa5f9506e100944a6551acde4 /doxygen | |
parent | f51915ba62aebfda5fc3b15d90540bd3f6a981ea (diff) |
svga: Map vertex- index- and constant buffers ansynchronously when reading
With SWTNL and index translation we're mapping buffers for reading. These
buffers are commonly upload_mgr buffers that might already be referenced
by another submitted or unsubmitted GPU command. A synchronous map will
then trigger a flush and sync, at least on Linux that doesn't distinguish
between read- and write referencing. So map these buffers async. If they
for some obscure reason happen to be dirty (stream-output, buffer-copy),
the resource_buffer code will read-back and sync anyway. For persistent /
coherent buffers a corresponding read-back and sync will happen in the
kernel fault handler.
Testing: Piglit quick. No regressions.
Signed-off-by: Thomas Hellstrom <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'doxygen')
0 files changed, 0 insertions, 0 deletions