On Mon, 2011-03-21 at 16:23 +0100, Christoph Bumiller wrote:
> On 03/21/2011 02:12 AM, Marek Olšák wrote:
>
> > diff --git a/src/gallium/include/pipe/p_state.h
> > b/src/gallium/include/pipe/p_state.h
> > index cf6c5b5..f6ad456 100644
> > --- a/src/gallium/include/pipe/p_state.h
> > +++ b/src/gallium/include/pipe/p_state.h
> > @@ -81,6 +81,8 @@ struct pipe_rasterizer_state
> > {
> > unsigned flatshade:1;
> > unsigned light_twoside:1;
> > + unsigned clamp_vertex_color:1;
> > + unsigned clamp_fragment_color:1;
> > unsigned front_ccw:1;
> > unsigned cull_face:2; /**< PIPE_FACE_x */
> > unsigned fill_front:2; /**< PIPE_POLYGON_MODE_x */
>
> Hadn't you put clamp_fragment_color in the blend state initially ?
> It seems like a more logical place to me.
Indeed you're right. Fragment color clamping takes place in the part of
the pipeline governed by the blend CSO.
Keith
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev