OSDN Git Service

gallium: handle flatshading explicitly in clipper stage
authorKeith Whitwell <keith@tungstengraphics.com>
Mon, 28 Jan 2008 15:50:02 +0000 (15:50 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 28 Jan 2008 15:50:02 +0000 (15:50 +0000)
commit82d9063708539d53c7670b2ab732bed24230b94d
tree668ee28b9fa45e5d87753ac26390c97d9c5900a4
parent88858e046888d0bcb763537adc74a64e564678df
gallium: handle flatshading explicitly in clipper stage

We can do a better job in the clip stage than just relying on the
brute-force approach of copying colors to all incoming vertices applied
in the flatshade stage.

At very least, it is only necessary to do this in the clipper when a
primitive is actually being clipped.
src/mesa/pipe/draw/draw_clip.c
src/mesa/pipe/draw/draw_validate.c