Skip to content
Snippets Groups Projects
Commit 89b4798c authored by Gurchetan Singh's avatar Gurchetan Singh :speech_balloon: Committed by Erik Faye-Lund
Browse files

virgl: don't mark buffers as unclean after a write


We can mark the buffer unclean if it's ever bound as a TBO,
SSBO, ABO, or image.

This improves

dEQP-GLES3.performance.buffer.data_upload.function_call.map_buffer_range.new_specified_buffer.flag_write_full.stream_draw

from 9.58 MB/s to 451.17 MB/s.

v2: Track buffer cleanliness as a function of bindings (Ilia).
v3: virgl_modify_clean --> virgl_dirty_res (Erik)

Tested-By: default avatarGert Wollny <gert.wollny@collabora.com>
Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
parent d18492c6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment