st/nine: Prepare constant compaction in nine_shader
authorAxel Davy <davyaxel0@gmail.com>
Sun, 20 Jan 2019 21:55:01 +0000 (22:55 +0100)
committerAxel Davy <davyaxel0@gmail.com>
Tue, 30 Apr 2019 17:18:52 +0000 (19:18 +0200)
commit7761cda686d8cb59c39d363ed5b6d95d1591bb66
tree5f71ec87cecf9867646dc5e2f823c9797b341359
parentdb404507b4adc39a2f67fcd3c28c80f41ad2d46a
st/nine: Prepare constant compaction in nine_shader

When indirect addressing is not used, we know exactly
which constants are accessed, and thus can
have them located in consecutive slots.
We thus parse again the shader with a slot map
for compaction.

The path contains the work inside nine_shader.c for this
path, but it needs some other commits to work, and thus
is not enabled yet by this commit.

Signed-off-by: Axel Davy <davyaxel0@gmail.com>
src/gallium/state_trackers/nine/nine_shader.c
src/gallium/state_trackers/nine/nine_shader.h