summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2020-06-19 17:14:37 +1000
committerDave Airlie <airlied@redhat.com>2020-07-27 13:48:12 +1000
commit2e25d7869380083c4026de26b3bc989ee3675da4 (patch)
tree42dda67d43c7f593e15f575c05bd51c5b1c841b4
parentf89723b67c070de198c62133750d7b18cc97f2f9 (diff)
gallivm/nir: wtf no idea 1-bit bools
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_nir.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index 846ae275b34..e4d4bb89da8 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -79,6 +79,7 @@ static LLVMValueRef cast_type(struct lp_build_nir_context *bld_base, LLVMValueRe
case 16:
return LLVMBuildBitCast(builder, val, bld_base->uint16_bld.vec_type, "");
case 32:
+ case 1:
return LLVMBuildBitCast(builder, val, bld_base->uint_bld.vec_type, "");
case 64:
return LLVMBuildBitCast(builder, val, bld_base->uint64_bld.vec_type, "");
@@ -87,6 +88,7 @@ static LLVMValueRef cast_type(struct lp_build_nir_context *bld_base, LLVMValueRe
break;
}
break;
+ case nir_type_bool:
case nir_type_uint32:
return LLVMBuildBitCast(builder, val, bld_base->uint_bld.vec_type, "");
default: