Skip to content

radv/rt: bsearch anyhit shaders

Friedrich Vock requested to merge pixelcluster/mesa:radv-anyhit-select into main

When there are lots of any-hit shaders, going over each one and checking if the call index matches becomes expensive. Instead, use a binary-search-like selection to skip most of the checks.

icache counters in Ghostwire Tokyo pretty much speak for themselves. Performance is 115ms->67ms.

Before:
gwt_cachecounters_before

After:
gwt_cachecounters_after

Edited by Friedrich Vock

Merge request reports