Skip to content
Snippets Groups Projects
Commit db77573d authored by Gurchetan Singh's avatar Gurchetan Singh :speech_balloon: Committed by Bas Nieuwenhuizen
Browse files

virgl: modify how we handle GL_MAP_FLUSH_EXPLICIT_BIT


Previously, we ignored the the glUnmap(..) operation and
flushed before we flush the cbuf.  Now, let's just flush
the data when we unmap.

Neither method is optimal, for example:

glMapBufferRange(.., 0, 100, GL_MAP_FLUSH_EXPLICIT_BIT)
glFlushMappedBufferRange(.., 25, 30)
glFlushMappedBufferRange(.., 65, 70)

We'll end up flushing 25 --> 70.  Maybe we can fix this later.

v2: Add fixme comment in the code (Elie)

Reviewed-by: default avatarElie Tournier <elie.tournier@collabora.com>
parent 11939f6f
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