radeonsi: remove conversion of DX9 FACE input to GL
authorMarek Olšák <marek.olsak@amd.com>
Thu, 16 Oct 2014 14:20:26 +0000 (16:20 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 21 Oct 2014 20:17:41 +0000 (22:17 +0200)
st/mesa and gallium expect the DX9 format, so this is useless.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 6b4f9e6d1e8dbf323bc41cbddf00a70f9656fc3a..6f2fb7b99792f5a4e76aa5019cc9f176c062a4b7 100644 (file)
@@ -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);