Mesa (master): bifrost: use nir_intrinsic_has_type
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 21 17:04:10 UTC 2020
Module: Mesa
Branch: master
Commit: 85b7403909d2458f17986674811daf1de3fc1947
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=85b7403909d2458f17986674811daf1de3fc1947
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Thu Aug 20 14:01:58 2020 +0100
bifrost: use nir_intrinsic_has_type
Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Reviewed-by: Rob Clark <robdclark at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6402>
---
src/panfrost/bifrost/bifrost_compile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c
index cd1eafcd4c3..60188bfb30f 100644
--- a/src/panfrost/bifrost/bifrost_compile.c
+++ b/src/panfrost/bifrost/bifrost_compile.c
@@ -90,7 +90,7 @@ bi_load(enum bi_class T, nir_intrinsic_instr *instr)
if (info->has_dest)
load.dest = pan_dest_index(&instr->dest);
- if (info->has_dest && info->index_map[NIR_INTRINSIC_TYPE] > 0)
+ if (info->has_dest && nir_intrinsic_has_type(instr))
load.dest_type = nir_intrinsic_type(instr);
nir_src *offset = nir_get_io_offset_src(instr);
More information about the mesa-commit
mailing list