mesa: preparse [ and [0] in gl_resource_name and use it in shader_query.cpp
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Oct 2021 01:02:42 +0000 (21:02 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 29 Oct 2021 11:19:20 +0000 (07:19 -0400)
commitaad903c3f5357697adb4bee82399904d3e78d992
tree5ff7b9e883bd1953d6b0b06602fe31bbfef123de
parent4b67055fef744333c892b8aaab96e765b8d1daef
mesa: preparse [ and [0] in gl_resource_name and use it in shader_query.cpp

strrchr is very expensive here.

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