Mesa (master): nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Sep 2 20:30:37 UTC 2020
Module: Mesa
Branch: master
Commit: 8c43edf9f917a801a18940bb570a295b7eed7f90
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c43edf9f917a801a18940bb570a295b7eed7f90
Author: Marek Olšák <marek.olsak at amd.com>
Date: Tue Sep 1 11:37:07 2020 -0400
nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base
Fixes: 01ab308edc "nir: update IO semantics in nir_io_add_const_offset_to_base"
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6540>
---
src/compiler/nir/nir_lower_io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c
index 2cff415eb43..00ea0bd739a 100644
--- a/src/compiler/nir/nir_lower_io.c
+++ b/src/compiler/nir/nir_lower_io.c
@@ -1964,7 +1964,7 @@ static bool is_dual_slot(nir_intrinsic_instr *intrin)
nir_src_num_components(intrin->src[0]) >= 3;
}
- return nir_dest_bit_size(intrin->dest) &&
+ return nir_dest_bit_size(intrin->dest) == 64 &&
nir_dest_num_components(intrin->dest) >= 3;
}
More information about the mesa-commit
mailing list