Re: [Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-08-01 Thread Roland Scheidegger
Am 01.08.2013 21:11, schrieb Jose Fonseca: > > > - Original Message - + if (draw_will_inject_frontface(lp_context->draw) && >>> I think it's annoying you have to do these calls to determine if there's >>> a valid frontface here for each line instead of just per draw call but >>> it

Re: [Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-08-01 Thread Jose Fonseca
- Original Message - > > > +   if (draw_will_inject_frontface(lp_context->draw) && > > I think it's annoying you have to do these calls to determine if there's > > a valid frontface here for each line instead of just per draw call but > > it doesn't seem easy to avoid it. > > Yea, there'

Re: [Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-08-01 Thread Roland Scheidegger
Am 01.08.2013 06:21, schrieb Zack Rusin: >>> + if (draw_will_inject_frontface(lp_context->draw) && >> I think it's annoying you have to do these calls to determine if there's >> a valid frontface here for each line instead of just per draw call but >> it doesn't seem easy to avoid it. > > Yea, t

Re: [Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-07-31 Thread Zack Rusin
> > + if (draw_will_inject_frontface(lp_context->draw) && > I think it's annoying you have to do these calls to determine if there's > a valid frontface here for each line instead of just per draw call but > it doesn't seem easy to avoid it. Yea, there's no trivial way of avoiding it. > Also, n

Re: [Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-07-31 Thread Roland Scheidegger
Am 31.07.2013 13:38, schrieb Zack Rusin: > Draw module can decompose primitives into wireframe models, which > is a fancy word for 'lines', unfortunately that decomposition means > that we weren't able to preserve the original front-face info which > could be derived from the original primitives (l

[Mesa-dev] [PATCH 2/2] draw: inject frontface info into wireframe outputs

2013-07-31 Thread Zack Rusin
Draw module can decompose primitives into wireframe models, which is a fancy word for 'lines', unfortunately that decomposition means that we weren't able to preserve the original front-face info which could be derived from the original primitives (lines don't have a 'face'). To fix it allow draw m