mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
ir3: rename @store_uniform_ir3 to @store_const_ir3
Uniforms are a legacy thing and this intrinsic was only used to store to the const file so the new naming is less confusing. Signed-off-by: Job Noorman <jnoorman@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28341>
This commit is contained in:
parent
e0bad1dd20
commit
fbd2c80671
4 changed files with 4 additions and 4 deletions
|
|
@ -1403,7 +1403,7 @@ barrier("preamble_end_ir3")
|
|||
intrinsic("elect_any_ir3", dest_comp=1, flags=[CAN_ELIMINATE])
|
||||
|
||||
# IR3-specific intrinsic for stc. Should be used in the shader preamble.
|
||||
store("uniform_ir3", [], indices=[BASE])
|
||||
store("const_ir3", [], indices=[BASE])
|
||||
|
||||
# IR3-specific intrinsic for loading from a const reg.
|
||||
load("const_ir3", [1], indices=[BASE], flags=[CAN_ELIMINATE, CAN_REORDER])
|
||||
|
|
|
|||
|
|
@ -3176,7 +3176,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr)
|
|||
array_insert(b, b->keeps, instr);
|
||||
break;
|
||||
}
|
||||
case nir_intrinsic_store_uniform_ir3: {
|
||||
case nir_intrinsic_store_const_ir3: {
|
||||
unsigned components = nir_src_num_components(intr->src[0]);
|
||||
unsigned dst = nir_intrinsic_base(intr);
|
||||
unsigned dst_lo = dst & 0xff;
|
||||
|
|
|
|||
|
|
@ -437,7 +437,7 @@ copy_global_to_uniform(nir_shader *nir, struct ir3_ubo_analysis_state *state)
|
|||
nir_def *load =
|
||||
nir_load_global_ir3(b, 4, 32, base,
|
||||
nir_imm_int(b, (start + offset) / 4));
|
||||
nir_store_uniform_ir3(b, load, .base = const_offset);
|
||||
nir_store_const_ir3(b, load, .base = const_offset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -809,7 +809,7 @@ ir3_nir_lower_preamble(nir_shader *nir, struct ir3_shader_variant *v)
|
|||
}
|
||||
}
|
||||
|
||||
nir_store_uniform_ir3(b, src, .base = offset);
|
||||
nir_store_const_ir3(b, src, .base = offset);
|
||||
nir_instr_remove(instr);
|
||||
nir_instr_free(instr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue