draw: revert using correct order for prim decomposition.
authorRoland Scheidegger <sroland@vmware.com>
Wed, 17 Dec 2014 19:16:07 +0000 (20:16 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 17 Dec 2014 19:17:42 +0000 (20:17 +0100)
This reverts db3dfcfe90a3d27e6020e0d3642f8ab0330e57be.
The commit was correct but we've got some precision problems later in
llvmpipe (or possibly in draw clip) due to the vertices coming in in
different order, causing some internal test failures. So revert for now.
(Will only affect drivers which actually support constant-interpolated
attributes and not just flatshading.)

src/gallium/auxiliary/draw/draw_pt_decompose.h

index 0b2522c08f0648665ea4736bfb9eee0ead57d3eb..c4fab6548b96dbf9d4c4a9438d31d71f0efed8e7 100644 (file)
@@ -3,6 +3,8 @@
    const boolean quads_flatshade_last =      \
       draw->quads_always_flatshade_last;     \
    const boolean last_vertex_last =          \
-      !draw->rasterizer->flatshade_first;
+      !(draw->rasterizer->flatshade &&       \
+        draw->rasterizer->flatshade_first);
+/* FIXME: the draw->rasterizer->flatshade part is really wrong */
 
 #include "draw_decompose_tmp.h"