diff options
author | Eric Anholt <eric@anholt.net> | 2013-10-07 14:34:00 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-10-23 15:33:46 -0700 |
commit | 867d0cc1fece5343e8c1655fc1b799aa8fcf5a0d (patch) | |
tree | 207f3c65d8cd94d2622140fb3d214e2465d0f7c4 | |
parent | c298f5ff5681dd7c3cf0bf7c37a6f22430deeb91 (diff) |
i965: Add perf debug hint when the app makes us do index buffer scanning.
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index b6cfd53712..0acd089bcd 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -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. |