[Mesa-dev] [PATCH] softpipe: Take all lods into account when texture sampling.

Olivier Galibert galibert at pobox.com
Fri Jul 13 09:30:37 PDT 2012


On Wed, Jun 20, 2012 at 08:33:38AM -0600, Brian Paul wrote:
> Yeah, I think it's pretty clear that we need to support per-pixel LOD 
> selection.  For softpipe, Olivier's big patch looks good.

... and then nothing happened.  Ping?  The only code remark was a
whitespace issue on one line :-)


> For 
> llvmpipe it's important to maintain performance for the common case 
> where we compute LOD per quad but we'll also need new paths for 
> per-pixel LOD.  Hopefully, the two paths can share some code.

I've been thinking, it looks reasonable to statically check whether
the lod/grad/bias is shared at the glsl level.  Then we could have
separate opcodes for the texturing variants for when we're sure things
are shared and when we aren't.  And pay the cost only when it is
needed.  Would that sound reasonable?

  OG.



More information about the mesa-dev mailing list