summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-01-20 19:57:05 -0500
committerMarek Olšák <[email protected]>2020-02-14 18:16:27 -0500
commitcf86f522b255a5603176ec361cb0cfcc2416a41d (patch)
treeecf951d22ceabf699aebab094732ff3795b18d9f /src/gallium/auxiliary
parent55d8baa285524e01eb241aa70057fb8e637fa14e (diff)
gallium/u_vbuf: adjust the heuristic for unrolling indices
This improves performance in the first subtest of Viewperf11/Catia by 10%. Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3829>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_vbuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index 30c4d18f6b6..0201dc9b2bf 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -1432,8 +1432,8 @@ void u_vbuf_draw_vbo(struct u_vbuf *mgr, const struct pipe_draw_info *info)
* performance. */
if (!info->indirect &&
!new_info.primitive_restart &&
- num_vertices > new_info.count*2 &&
- num_vertices - new_info.count > 32 &&
+ num_vertices > new_info.count * 4 &&
+ new_info.count > 32 &&
!u_vbuf_mapping_vertex_buffer_blocks(mgr)) {
unroll_indices = TRUE;
user_vb_mask &= ~(mgr->nonzero_stride_vb_mask &