glsl: fix shader cache for packed param list
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 27 Feb 2019 07:26:07 +0000 (18:26 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 28 Feb 2019 00:47:37 +0000 (11:47 +1100)
commit7536af670b7501228628a8c90f9e8456b5aec9e1
tree19e3799ebef712e1e62fcae7ff92fcc51eb88e86
parent07f4b4e4034d6c9f48d136ec39a03e59f65783cb
glsl: fix shader cache for packed param list

Some types of params such as some builtins are always padded. We
need to keep track of this so we can restore the list correctly.

Here we also remove a couple of cache entries that are not actually
required as they get rebuilt by the _mesa_add_parameter() calls.

This patch fixes a bunch of arb_texture_multisample and
arb_sample_shading piglit tests for the radeonsi NIR backend.

Fixes: edded1237607 ("mesa: rework ParameterList to allow packing")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/compiler/glsl/serialize.cpp
src/mesa/program/prog_parameter.c
src/mesa/program/prog_parameter.h