mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
nir: nir_range_analysis needs to be updated for vec16
Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6275>
This commit is contained in:
parent
7b4c24eb67
commit
678cb6d248
1 changed files with 4 additions and 1 deletions
|
|
@ -87,7 +87,10 @@ static struct ssa_result_range
|
|||
analyze_constant(const struct nir_alu_instr *instr, unsigned src,
|
||||
nir_alu_type use_type)
|
||||
{
|
||||
uint8_t swizzle[4] = { 0, 1, 2, 3 };
|
||||
uint8_t swizzle[NIR_MAX_VEC_COMPONENTS] = { 0, 1, 2, 3,
|
||||
4, 5, 6, 7,
|
||||
8, 9, 10, 11,
|
||||
12, 13, 14, 15 };
|
||||
|
||||
/* If the source is an explicitly sized source, then we need to reset
|
||||
* both the number of components and the swizzle.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue