mesa: optimize _mesa_bytes_per_vertex_attrib using a hash-based translation
authorMarek Olšák <marek.olsak@amd.com>
Mon, 12 Dec 2022 04:47:29 +0000 (23:47 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 18 Dec 2022 19:35:59 +0000 (14:35 -0500)
commitb5c0706d470d03c3f155c515e406857fef60ff61
tree93645bd2aa68558dba87258c47e3641921459135
parent8e89f07fc85e7c53a58c76d01661e25573da4aae
mesa: optimize _mesa_bytes_per_vertex_attrib using a hash-based translation

This reduces time spent in gl*Pointer for viewperf.

Generated by find_hash_func.c.

Reviewed-by: Rob Clark <robclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20287>
src/mesa/main/glformats.c
src/mesa/main/glformats.h
src/mesa/main/varray.c
src/mesa/main/varray.h