mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-13 13:10:34 +01:00
nir/range_analysis: set deleted key
If (uintptr_t)&deleted_key is small enough, inserting entries into the hash table might not work correctly. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Backport-to: 26.0 Reviewed-by: Georg Lehmann <dadschoorse@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40190>
This commit is contained in:
parent
f00cde96b7
commit
c0079e09ca
1 changed files with 2 additions and 0 deletions
|
|
@ -2033,6 +2033,7 @@ nir_unsigned_upper_bound(nir_shader *shader, struct hash_table *range_ht,
|
|||
|
||||
push_scalar_query(&state, scalar);
|
||||
|
||||
_mesa_hash_table_set_deleted_key(range_ht, (void *)(uintptr_t)UINT32_MAX);
|
||||
return perform_analysis(&state);
|
||||
}
|
||||
|
||||
|
|
@ -2424,5 +2425,6 @@ nir_def_num_lsb_zero(struct hash_table *numlsb_ht, nir_scalar def)
|
|||
|
||||
push_scalar_query(&state, def);
|
||||
|
||||
_mesa_hash_table_set_deleted_key(numlsb_ht, (void *)(uintptr_t)UINT32_MAX);
|
||||
return perform_analysis(&state);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue