summaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_shader.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-05-06 16:02:19 -0700
committerRob Clark <[email protected]>2019-05-07 07:26:00 -0700
commit9403184ddd002f11f30a0eab0f98f9545810b513 (patch)
tree4d18f9fad89e49dacb67a77fa975d8937321d218 /src/freedreno/vulkan/tu_shader.c
parent23e7a34466c448c4c7c9a2c2e4d200dedf2584f7 (diff)
freedreno/ir3: move immediates to const_state
They are really part of the constant state, and it will moving things from ir3_shader_variant to ir3_shader if we combine them. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/vulkan/tu_shader.c')
-rw-r--r--src/freedreno/vulkan/tu_shader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freedreno/vulkan/tu_shader.c b/src/freedreno/vulkan/tu_shader.c
index c2fdff9953e..62f8f91c7f3 100644
--- a/src/freedreno/vulkan/tu_shader.c
+++ b/src/freedreno/vulkan/tu_shader.c
@@ -196,8 +196,8 @@ tu_shader_destroy(struct tu_device *dev,
for (uint32_t i = 0; i < 1 + shader->has_binning_pass; i++) {
if (shader->variants[i].ir)
ir3_destroy(shader->variants[i].ir);
- if (shader->variants[i].immediates)
- free(shader->variants[i].immediates);
+ if (shader->variants[i].const_state.immediates)
+ free(shader->variants[i].const_state.immediates);
}
if (shader->binary)