panfrost: Optimise recalculation of max sampler view
authorIcecream95 <ixn@disroot.org>
Thu, 14 Oct 2021 03:39:59 +0000 (16:39 +1300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 14 Mar 2022 16:33:40 +0000 (16:33 +0000)
commitd5870c45ae82c091e72f1258920aa54974e19a36
treeab42c261b7f26386f26aa37209fc09d99b7e4a11
parent3e405afeb9c1cb1182f83e2a1fd6f0beb199df64
panfrost: Optimise recalculation of max sampler view

Previously we always searched through 128 sampler views for set
sampler views, now we never look above the maximum updated view.

Fixes: 304851422a4 ("panfrost: Fix set_sampler_views for big GL")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15366>
src/gallium/drivers/panfrost/pan_context.c