v3d/compiler: num_tex_used on v3d_key
authorAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 16 Dec 2019 11:11:37 +0000 (12:11 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:25 +0000 (21:21 +0000)
commit62ca99747615c3d4c9d4e9e87851721eef31a8f8
tree7da4b1f91924f112f3f6bc8b67d888bb7a48eec9
parent3f00638cff3eb6d80d4d5177c14efd5b69e4036a
v3d/compiler: num_tex_used on v3d_key

We would need on OpenGL to update values for all the textures used. On
OpenGL that value can be always took from the context or the nir
shader, but there are cases on Vulkan that it is not the case, or
would force up to recompute it.

Acked-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
src/broadcom/compiler/v3d_compiler.h
src/gallium/drivers/v3d/v3d_program.c