mesa: rework ParameterList to allow packing
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 16 Jun 2017 00:17:56 +0000 (10:17 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 20 Mar 2018 03:17:33 +0000 (14:17 +1100)
commitedded1237607348683f492db313e823dc2e380c3
tree1fb861be1d324eb309fbef50e6b353dfff4a0c83
parentb13b9eb432a3b67efb29ca25c3e244b467c3c4af
mesa: rework ParameterList to allow packing

Currently everything is padded to 4 components. Making the list
more flexible will allow us to do uniform packing.

V2 (suggestions from Nicolai):
- always pass existing calls to _mesa_add_parameter() true for padd_and_align
- fix bindless param value offsets
- remove left over wip logic from pad and align code
- zero out param value padding
- whitespace fix

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
19 files changed:
src/compiler/glsl/serialize.cpp
src/mesa/drivers/dri/i915/i915_fragprog.c
src/mesa/drivers/dri/i965/gen6_constant_state.c
src/mesa/drivers/dri/r200/r200_vertprog.c
src/mesa/main/uniform_query.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/prog_execute.c
src/mesa/program/prog_opt_constant_fold.c
src/mesa/program/prog_parameter.c
src/mesa/program/prog_parameter.h
src/mesa/program/prog_parameter_layout.c
src/mesa/program/prog_print.c
src/mesa/program/prog_statevars.c
src/mesa/program/prog_to_nir.c
src/mesa/program/program_parse.y
src/mesa/state_tracker/st_atifs_to_tgsi.c
src/mesa/state_tracker/st_atom_constbuf.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_mesa_to_tgsi.c