mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-22 11:50:36 +02:00
tgsi: Fixes ntt_should_vectorize_io parameters
Fixes: 5f757bb95c ("nir: Make the load_store_vectorizer provide align_mul + align_offset.")
This is found when I am trying to narrow bit_size and num_components to uint8_t
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37042>
This commit is contained in:
parent
bc8e29c04e
commit
949a056934
1 changed files with 6 additions and 3 deletions
|
|
@ -3250,14 +3250,17 @@ ntt_should_vectorize_instr(const nir_instr *instr, const void *data)
|
|||
return 4;
|
||||
}
|
||||
|
||||
/* TODO: These parameters are wrong. */
|
||||
static bool
|
||||
ntt_should_vectorize_io(unsigned align, unsigned bit_size,
|
||||
unsigned num_components, unsigned high_offset,
|
||||
ntt_should_vectorize_io(unsigned align_mul,
|
||||
unsigned align_offset,
|
||||
unsigned bit_size,
|
||||
unsigned num_components,
|
||||
int64_t hole_size,
|
||||
nir_intrinsic_instr *low, nir_intrinsic_instr *high,
|
||||
void *data)
|
||||
{
|
||||
const uint32_t align = nir_combined_align(align_mul, align_offset);
|
||||
|
||||
if (bit_size != 32 || hole_size > 0 || !nir_num_components_valid(num_components))
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue