mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 18:30:09 +01:00
nir/lower_io: validate locations more accurately
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36091>
This commit is contained in:
parent
b0494f9485
commit
0fdd6de65f
1 changed files with 2 additions and 2 deletions
|
|
@ -324,8 +324,8 @@ emit_load(struct lower_io_state *state,
|
|||
unsigned num_slots = get_number_of_slots(state, var);
|
||||
|
||||
/* Maximum values in nir_io_semantics. */
|
||||
assert(location >= 0 && location <= 127);
|
||||
assert(num_slots <= 63);
|
||||
assert(location >= 0 && location + num_slots <= NUM_TOTAL_VARYING_SLOTS);
|
||||
|
||||
nir_io_semantics semantics = { 0 };
|
||||
semantics.location = location;
|
||||
|
|
@ -489,8 +489,8 @@ emit_store(struct lower_io_state *state, nir_def *data,
|
|||
unsigned num_slots = get_number_of_slots(state, var);
|
||||
|
||||
/* Maximum values in nir_io_semantics. */
|
||||
assert(location >= 0 && location <= 127);
|
||||
assert(num_slots <= 63);
|
||||
assert(location >= 0 && location + num_slots <= NUM_TOTAL_VARYING_SLOTS);
|
||||
|
||||
nir_io_semantics semantics = { 0 };
|
||||
semantics.location = location;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue