mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 13:08:09 +02:00
By putting vertex store and indices all in one buffer the larger part
of the shared buffer might actually only be vertex data we are not
interested in. Hence only map the part of the buffer that contains the
index data for the currently active draw command.
This helps drivers where a mapping operation is expensive, like e.g. virgl.
v2: - add comment about ranged buffer mapping (Pierre-Eric)
- keep passing direct_draws[i].start to direct_draw_func, it looks
like the "start" parameter is properly set in
util_prim_restart_convert_to_direct
v3: Fix ws error (Mike)
Related: #5825
Fixes:
|
||
|---|---|---|
| .. | ||
| u_indices.c | ||
| u_indices.h | ||
| u_indices_gen.py | ||
| u_indices_priv.h | ||
| u_primconvert.c | ||
| u_primconvert.h | ||
| u_unfilled_gen.py | ||
| u_unfilled_indices.c | ||