diff options
author | Erik Faye-Lund <[email protected]> | 2019-06-24 18:23:13 +0200 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2019-10-28 08:51:45 +0000 |
commit | 8e5d24fedfc371e5d862aa09747a3aee69beffa5 (patch) | |
tree | 97d501a47295730f55ebb87b939956abdcbe4a6d | |
parent | 35c0ef885277d5c80f760796c0ad51e139931bb0 (diff) |
zink: fix off-by-one in assert
Acked-by: Jordan Justen <[email protected]>
-rw-r--r-- | src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c b/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c index 8028b7a6d70..32c4bdc73ca 100644 --- a/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c +++ b/src/gallium/drivers/zink/nir_to_spirv/spirv_builder.c @@ -650,7 +650,7 @@ get_type_def(struct spirv_builder *b, SpvOp op, const uint32_t args[], */ struct spirv_type key; - assert(num_args < ARRAY_SIZE(key.args)); + assert(num_args <= ARRAY_SIZE(key.args)); key.op = op; memcpy(&key.args, args, sizeof(uint32_t) * num_args); key.num_args = num_args; |