Skip to content
  • Roland Scheidegger's avatar
    softpipe: clean up lod computation · 75d99673
    Roland Scheidegger authored
    
    
    This should handle the new lod_zero modifier more correctly.
    The runtime-conditional is a bit more complex however we now also do
    scalar lod computation when appropriate which should more than make up for it.
    The refactoring should also fix an issue with explicit lods
    (lod clamp wasn't applied to them).
    Also, always pass lod as the 5th element from tgsi executor, which simplifies
    things (get rid of annoying conditionals later).
    
    v2: based on Brian's feedback, use switch in a couple of places, fix up
    some function parameter names, fix up comments.
    
    Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
    75d99673