Mesa (master): draw llvm: make sure use_llvm isn't used when not defined

Zack Rusin zack at kemper.freedesktop.org
Mon Apr 19 17:29:08 UTC 2010


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

Author: Zack Rusin <zackr at vmware.com>
Date:   Mon Apr 19 13:33:49 2010 -0400

draw llvm: make sure use_llvm isn't used when not defined

---

 src/gallium/auxiliary/draw/draw_pt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c
index f803e6d..cea186c 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -123,7 +123,6 @@ boolean draw_pt_init( struct draw_context *draw )
 {
    draw->pt.test_fse = debug_get_bool_option("DRAW_FSE", FALSE);
    draw->pt.no_fse = debug_get_bool_option("DRAW_NO_FSE", FALSE);
-   draw->use_llvm = debug_get_bool_option("DRAW_USE_LLVM", TRUE);
 
    draw->pt.front.vcache = draw_pt_vcache( draw );
    if (!draw->pt.front.vcache)
@@ -142,6 +141,7 @@ boolean draw_pt_init( struct draw_context *draw )
       return FALSE;
 
 #if HAVE_LLVM
+   draw->use_llvm = debug_get_bool_option("DRAW_USE_LLVM", TRUE);
    if (draw->use_llvm)
       draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit_llvm( draw );
 #else




More information about the mesa-commit mailing list