mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 02:20:11 +01:00
radeon/llvm: Fix lowering TGSI_OPCODE_SSG
This commit is contained in:
parent
cae077cd0f
commit
bd8af8a3dc
1 changed files with 1 additions and 1 deletions
|
|
@ -875,7 +875,7 @@ static void emit_ssg(
|
|||
cmp = LLVMBuildICmp(builder, LLVMIntSGE, val, bld_base->int_bld.zero, "");
|
||||
val = LLVMBuildSelect(builder, cmp, val, LLVMConstInt(bld_base->int_bld.elem_type, -1, true), "");
|
||||
} else { // float SSG
|
||||
cmp = LLVMBuildFCmp(builder, LLVMRealUGT, emit_data->args[0], bld_base->int_bld.zero, "");
|
||||
cmp = LLVMBuildFCmp(builder, LLVMRealUGT, emit_data->args[0], bld_base->base.zero, "");
|
||||
val = LLVMBuildSelect(builder, cmp, bld_base->base.one, emit_data->args[0], "");
|
||||
cmp = LLVMBuildFCmp(builder, LLVMRealUGE, val, bld_base->base.zero, "");
|
||||
val = LLVMBuildSelect(builder, cmp, val, LLVMConstReal(bld_base->base.elem_type, -1), "");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue