Module: Mesa
Branch: master
Commit: e827bb6fe747bfb5153d1d8c522b83ba8e07e3d6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e827bb6fe747bfb5153d1d8c522b83ba8e07e3d6

Author: Marek Olšák <[email protected]>
Date:   Thu Oct 16 16:20:26 2014 +0200

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 <[email protected]>

---

 src/gallium/drivers/radeonsi/si_shader.c |   15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c 
b/src/gallium/drivers/radeonsi/si_shader.c
index 6b4f9e6..6f2fb7b 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to