Skip to content
  • Roland Scheidegger's avatar
    gallium/util: don't use blocksize for minify for assertions · afbf5888
    Roland Scheidegger authored
    
    
    The previous assertions required for texture sizes smaller than block_size
    that src_box.x + src_box.width still be block size.
    (e.g. for a texture with width 3, and src_box.x = 0, src_box.width would
    have to be 4 to not assert.)
    This caused some assertions with some other state tracker.
    It looks though like callers aren't expected to round up widths to block sizes
    (for sizes larger than block size the assertion would still have verified it
    wouldn't have been rounded up) so we simply shouldn't use a minify which
    rounds up to block size.
    (No piglit change with llvmpipe.)
    
    Reviewed-by: default avatarJose Fonseca <jfonseca@vmware.com>
    Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
    afbf5888