mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 05:28:05 +02:00
i965: Add perf debug hint when the app makes us do index buffer scanning.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
c298f5ff56
commit
867d0cc1fe
1 changed files with 4 additions and 1 deletions
|
|
@ -481,8 +481,11 @@ void brw_draw_prims( struct gl_context *ctx,
|
|||
* get the minimum and maximum of their index buffer so we know what range
|
||||
* to upload.
|
||||
*/
|
||||
if (!vbo_all_varyings_in_vbos(arrays) && !index_bounds_valid)
|
||||
if (!vbo_all_varyings_in_vbos(arrays) && !index_bounds_valid) {
|
||||
perf_debug("Scanning index buffer to compute index buffer bounds. "
|
||||
"Use glDrawRangeElements() to avoid this.\n");
|
||||
vbo_get_minmax_indices(ctx, prims, ib, &min_index, &max_index, nr_prims);
|
||||
}
|
||||
|
||||
/* Do GL_SELECT and GL_FEEDBACK rendering using swrast, even though it
|
||||
* won't support all the extensions we support.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue