mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radv: Use util_widen_mask.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14005>
This commit is contained in:
parent
c3eebc860a
commit
078f9d9eeb
1 changed files with 1 additions and 10 deletions
|
|
@ -51,15 +51,6 @@ gather_intrinsic_load_input_info(const nir_shader *nir, const nir_intrinsic_inst
|
|||
}
|
||||
}
|
||||
|
||||
static uint32_t
|
||||
widen_writemask(uint32_t wrmask)
|
||||
{
|
||||
uint32_t new_wrmask = 0;
|
||||
for (unsigned i = 0; i < 4; i++)
|
||||
new_wrmask |= (wrmask & (1 << i) ? 0x3 : 0x0) << (i * 2);
|
||||
return new_wrmask;
|
||||
}
|
||||
|
||||
static void
|
||||
set_writes_memory(const nir_shader *nir, struct radv_shader_info *info)
|
||||
{
|
||||
|
|
@ -78,7 +69,7 @@ gather_intrinsic_store_output_info(const nir_shader *nir, const nir_intrinsic_in
|
|||
uint8_t *output_usage_mask = NULL;
|
||||
|
||||
if (instr->src[0].ssa->bit_size == 64)
|
||||
write_mask = widen_writemask(write_mask);
|
||||
write_mask = util_widen_mask(write_mask, 2);
|
||||
|
||||
switch (nir->info.stage) {
|
||||
case MESA_SHADER_VERTEX:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue