nv50: Clear nv50_ir_prog_info of dead and codegen specific variables
authormmenzyns <mmenzyns@redhat.com>
Tue, 30 Jun 2020 13:57:49 +0000 (15:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jul 2020 10:17:59 +0000 (10:17 +0000)
commit66ed9792edb702c18eeb4d23a7b792e32b3188d4
tree94f4da4d8b952a98b2f6253e43acbb3fb4e17728
parent50d20dc055decf43f956601d71572f825c2b2eca
nv50: Clear nv50_ir_prog_info of dead and codegen specific variables

These variables are either not used in the code, only assigned but
never accessed, or only used inside codegen. Another reason is that this
patch will be preceding shader cache, and these variables are useless to
cache. Removing/moving them should make it clearer by removing the case something
from the structure is not cached.

Shader cache patch: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4264

Signed-off-by: Mark Menzynski <mmenzyns@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5697>
src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir.h
src/gallium/drivers/nouveau/codegen/nv50_ir_driver.h
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp