mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
radeonsi: partially revert "switch descriptors to i32 vectors"
It indeed breaks LLVM 3.4.2.
This commit is contained in:
parent
130c99ca15
commit
d859bdb4b5
1 changed files with 12 additions and 0 deletions
|
|
@ -1989,6 +1989,7 @@ static void build_tex_intrinsic(const struct lp_build_tgsi_action * action,
|
|||
emit_data->args, emit_data->arg_count,
|
||||
LLVMReadNoneAttribute | LLVMNoUnwindAttribute);
|
||||
} else {
|
||||
LLVMTypeRef i8, v16i8, v32i8;
|
||||
const char *name;
|
||||
|
||||
switch (opcode) {
|
||||
|
|
@ -2016,6 +2017,17 @@ static void build_tex_intrinsic(const struct lp_build_tgsi_action * action,
|
|||
return;
|
||||
}
|
||||
|
||||
i8 = LLVMInt8TypeInContext(base->gallivm->context);
|
||||
v16i8 = LLVMVectorType(i8, 16);
|
||||
v32i8 = LLVMVectorType(i8, 32);
|
||||
|
||||
emit_data->args[1] = LLVMBuildBitCast(base->gallivm->builder,
|
||||
emit_data->args[1], v32i8, "");
|
||||
if (opcode != TGSI_OPCODE_TXF) {
|
||||
emit_data->args[2] = LLVMBuildBitCast(base->gallivm->builder,
|
||||
emit_data->args[2], v16i8, "");
|
||||
}
|
||||
|
||||
sprintf(intr_name, "%s.v%ui32", name,
|
||||
LLVMGetVectorSize(LLVMTypeOf(emit_data->args[0])));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue