mesa: don't compute the same strlen up to 3x in _mesa_program_resource_find_name
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Oct 2021 00:03:59 +0000 (20:03 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 29 Oct 2021 11:19:20 +0000 (07:19 -0400)
commit81ad6a8b64f9f85e77f6fac5f4950f0f20fd59ea
tree988bd380a9beaac0a0e1838f9876ea5a56cb3bcc
parentdea558cbd298b8960661eba32f50c48fb92dd672
mesa: don't compute the same strlen up to 3x in _mesa_program_resource_find_name

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13507>
src/mesa/main/shader_query.cpp