Mesa (master): draw: don't use llvm engine when geometry shaders active

Keith Whitwell keithw at kemper.freedesktop.org
Mon Jun 7 11:41:36 PDT 2010


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

Author: Keith Whitwell <keithw at vmware.com>
Date:   Mon Jun  7 19:35:31 2010 +0100

draw: don't use llvm engine when geometry shaders active

They aren't implemented for llvm.

---

 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 b853f3a..c7eb156 100644
--- a/src/gallium/auxiliary/draw/draw_pt.c
+++ b/src/gallium/auxiliary/draw/draw_pt.c
@@ -97,7 +97,7 @@ draw_pt_arrays(struct draw_context *draw,
       opt |= PT_SHADE;
    }
       
-   if (draw->pt.middle.llvm) {
+   if (draw->pt.middle.llvm && !draw->gs.geometry_shader) {
       middle = draw->pt.middle.llvm;
    } else {
       if (opt == 0)



More information about the mesa-commit mailing list