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

virgl: avoid large inline transfers


We flush everytime the command buffer (16 kB) is full, which is
quite costly.

This improves

dEQP-GLES3.performance.buffer.data_upload.function_call.buffer_data.new_buffer.usage_stream_draw

from 111.16 MB/s to 1930.36 MB/s.

In addition, I made the benchmark produce buffers from 0 --> VIRGL_MAX_CMDBUF_DWORDS * 4,
and tried ((VIRGL_MAX_CMDBUF_DWORDS * 4) / 2), ((VIRGL_MAX_CMDBUF_DWORDS * 4) / 4), etc.

I didn't notice any clear differences, so let's just go with the most obvious
heuristic.

Tested-By: default avatarGert Wollny <gert.wollny@collabora.com>
Reviewed-by: default avatarErik Faye-Lund <erik.faye-lund@collabora.com>
parent c0773315
No related branches found
No related tags found
Loading
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