gallium/u_threaded: don't call simplify_draw_info redundantly
authorMarek Olšák <marek.olsak@amd.com>
Sat, 13 Aug 2022 14:04:22 +0000 (10:04 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Oct 2022 04:23:05 +0000 (04:23 +0000)
commit5db7dc599a642e19eb59223d492997c8fecd3fc3
treea8dfe8591b25e13e09e7b451c2b5eac5432d42c9
parent3cb96b18f64b0db0d68d917247710417de0b982d
gallium/u_threaded: don't call simplify_draw_info redundantly

It's always called for the first and second draw in a row, and if they
can't be merged, the second draw becomes the first draw in the next call,
and simplify_draw_info is called again on that. Thus, it's called twice
on any draw that isn't merged. To prevent that, call it when we add
the draws.

Acked-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18199>
src/gallium/auxiliary/util/u_threaded_context.c