mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
radeonsi: remove conversion of DX9 FACE input to GL
st/mesa and gallium expect the DX9 format, so this is useless. Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
a18f803a86
commit
e827bb6fe7
1 changed files with 1 additions and 14 deletions
|
|
@ -426,21 +426,8 @@ static void declare_input_fs(
|
|||
}
|
||||
|
||||
if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {
|
||||
LLVMValueRef face, is_face_positive;
|
||||
|
||||
face = LLVMGetParam(main_fn, SI_PARAM_FRONT_FACE);
|
||||
|
||||
is_face_positive = LLVMBuildFCmp(gallivm->builder,
|
||||
LLVMRealUGT, face,
|
||||
lp_build_const_float(gallivm, 0.0f),
|
||||
"");
|
||||
|
||||
radeon_bld->inputs[radeon_llvm_reg_index_soa(input_index, 0)] =
|
||||
LLVMBuildSelect(gallivm->builder,
|
||||
is_face_positive,
|
||||
lp_build_const_float(gallivm, 1.0f),
|
||||
lp_build_const_float(gallivm, 0.0f),
|
||||
"");
|
||||
LLVMGetParam(main_fn, SI_PARAM_FRONT_FACE);
|
||||
radeon_bld->inputs[radeon_llvm_reg_index_soa(input_index, 1)] =
|
||||
radeon_bld->inputs[radeon_llvm_reg_index_soa(input_index, 2)] =
|
||||
lp_build_const_float(gallivm, 0.0f);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue