mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
ir3: increment constoff right after it is assigned
Minor improvement to readability. No real change. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17570>
This commit is contained in:
parent
4ae2966616
commit
e3ba8a2f07
1 changed files with 8 additions and 4 deletions
|
|
@ -1008,13 +1008,17 @@ ir3_setup_const_state(nir_shader *nir, struct ir3_shader_variant *v,
|
|||
case MESA_SHADER_TESS_EVAL:
|
||||
constoff = align(constoff - 1, 4) + 3;
|
||||
const_state->offsets.primitive_param = constoff;
|
||||
const_state->offsets.primitive_map = constoff + 5;
|
||||
constoff += 5 + DIV_ROUND_UP(v->input_size, 4);
|
||||
constoff += 5;
|
||||
|
||||
const_state->offsets.primitive_map = constoff;
|
||||
constoff += DIV_ROUND_UP(v->input_size, 4);
|
||||
break;
|
||||
case MESA_SHADER_GEOMETRY:
|
||||
const_state->offsets.primitive_param = constoff;
|
||||
const_state->offsets.primitive_map = constoff + 1;
|
||||
constoff += 1 + DIV_ROUND_UP(v->input_size, 4);
|
||||
constoff += 1;
|
||||
|
||||
const_state->offsets.primitive_map = constoff;
|
||||
constoff += DIV_ROUND_UP(v->input_size, 4);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue