Mesa (master): gallivm: Remove the EMMS opcodes.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Oct 28 12:51:24 PDT 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Oct 18 06:24:30 2010 -0700

gallivm: Remove the EMMS opcodes.

Unnecessary now that lp_set_target_options() successful disables MMX code
emission.

---

 src/gallium/auxiliary/draw/draw_llvm.c     |   10 ----------
 src/gallium/drivers/llvmpipe/lp_state_fs.c |    5 -----
 2 files changed, 0 insertions(+), 15 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 140e596..2b5f01c 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -1164,11 +1164,6 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant)
 
    sampler->destroy(sampler);
 
-#ifdef PIPE_ARCH_X86
-   /* Avoid corrupting the FPU stack on 32bit OSes. */
-   lp_build_intrinsic(builder, "llvm.x86.mmx.emms", LLVMVoidType(), NULL, 0);
-#endif
-
    ret = LLVMBuildLoad(builder, ret_ptr,"");
    LLVMBuildRet(builder, ret);
       
@@ -1378,11 +1373,6 @@ draw_llvm_generate_elts(struct draw_llvm *llvm, struct draw_llvm_variant *varian
 
    sampler->destroy(sampler);
 
-#ifdef PIPE_ARCH_X86
-   /* Avoid corrupting the FPU stack on 32bit OSes. */
-   lp_build_intrinsic(builder, "llvm.x86.mmx.emms", LLVMVoidType(), NULL, 0);
-#endif
-
    ret = LLVMBuildLoad(builder, ret_ptr,"");   
    LLVMBuildRet(builder, ret);
    
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index 9fbedac..e4495e3 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c
@@ -761,11 +761,6 @@ generate_fragment(struct llvmpipe_screen *screen,
       }
    }
 
-#ifdef PIPE_ARCH_X86
-   /* Avoid corrupting the FPU stack on 32bit OSes. */
-   lp_build_intrinsic(builder, "llvm.x86.mmx.emms", LLVMVoidType(), NULL, 0);
-#endif
-
    LLVMBuildRetVoid(builder);
 
    LLVMDisposeBuilder(builder);



More information about the mesa-commit mailing list