freedreno/ir3: make immediates array dynamic
authorHyunjun Ko <zzoon@igalia.com>
Thu, 30 Aug 2018 02:58:53 +0000 (11:58 +0900)
committerRob Clark <robdclark@gmail.com>
Wed, 5 Sep 2018 17:38:43 +0000 (13:38 -0400)
commitb4da2f6667e8fcdd4f8fdd45f3859e036a3b855c
treeb721e609b9ed1d47ac64a3a6faf8891587b81426
parentc3d9f29b78136c949ff2c98886aea8803f62b34e
freedreno/ir3: make immediates array dynamic

Since most shaders wouldn't need that large array of immediates, making
the array dynamic could save unnecessary spaces.

In addition, sometimes we can potentially have a much larger array
of immediates to be lowered, which might be more than 64.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_cp.c
src/gallium/drivers/freedreno/ir3/ir3_shader.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h