From: Keith Whitwell Date: Thu, 17 Apr 2008 13:42:05 +0000 (+0100) Subject: draw: don't always run pipeline if clipping X-Git-Tag: 062012170305~17580^2~390^2~1844 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe8af141246bdfc0e98beec0089acdb92407bcfa;p=profile%2Fivi%2Fmesa.git draw: don't always run pipeline if clipping --- diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c index c0125c9..60a47f3 100644 --- a/src/gallium/auxiliary/draw/draw_pt.c +++ b/src/gallium/auxiliary/draw/draw_pt.c @@ -74,11 +74,11 @@ draw_pt_arrays(struct draw_context *draw, } - if (draw->pt.middle.opt[opt] == NULL) { - opt = PT_PIPELINE | PT_CLIPTEST | PT_SHADE; + middle = draw->pt.middle.opt[opt]; + if (middle == NULL) { + middle = draw->pt.middle.opt[PT_PIPELINE | PT_CLIPTEST | PT_SHADE]; } - middle = draw->pt.middle.opt[opt]; assert(middle); /* May create a short-circuited version of this for small primitives: