summaryrefslogtreecommitdiffstats
path: root/src/gallium
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/gallium
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/gallium')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_gallium.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
index 3bb29daf9b8..08a7c90aab3 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_gallium.c
@@ -388,7 +388,7 @@ emit_immediates(struct fd_context *ctx, const struct ir3_shader_variant *v,
{
const struct ir3_const_state *const_state = &v->const_state;
uint32_t base = const_state->offsets.immediate;
- int size = v->immediates_count;
+ int size = const_state->immediates_count;
/* truncate size to avoid writing constants that shader
* does not use:
@@ -402,7 +402,7 @@ emit_immediates(struct fd_context *ctx, const struct ir3_shader_variant *v,
if (size > 0) {
ring_wfi(ctx->batch, ring);
ctx->emit_const(ring, v->type, base,
- 0, size, v->immediates[0].val, NULL);
+ 0, size, const_state->immediates[0].val, NULL);
}
}