radeonsi: Bitcast result of packf16 intrinsic to float for export intrinsic.
Fixes 7 piglit tests, and prevents many more from crashing. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-and-Tested-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
committed by
Michel Dänzer
parent
c102360800
commit
8b6aec6533
@@ -496,7 +496,11 @@ static void si_llvm_init_export_args(struct lp_build_tgsi_context *bld_base,
|
||||
LLVMInt32TypeInContext(base->gallivm->context),
|
||||
args, 2,
|
||||
LLVMReadNoneAttribute);
|
||||
args[chan + 7] = args[chan + 5];
|
||||
args[chan + 7] = args[chan + 5] =
|
||||
LLVMBuildBitCast(base->gallivm->builder,
|
||||
args[chan + 5],
|
||||
LLVMFloatTypeInContext(base->gallivm->context),
|
||||
"");
|
||||
}
|
||||
|
||||
/* Set COMPR flag */
|
||||
|
||||
Reference in New Issue
Block a user