Skip to content
  • Kenneth Graunke's avatar
    i965: Drop mark_surface_used mechanism. · 04c2f12a
    Kenneth Graunke authored
    
    
    The original idea was that the backend compiler could eliminate
    surfaces, so we would have it mark which ones are actually used,
    then shrink the binding table accordingly.  Unfortunately, it's a
    pretty blunt mechanism - it can only prune things from the end,
    not the middle - since we decide the layout before we even start
    the backend compiler, and only limit the size.  It also basically
    gives up if it sees indirect array access.
    
    Besides, we do the vast majority of our surface elimination in NIR
    anyway, not the backend - and I don't see that trend changing any
    time soon.  Vulkan abandoned this plan a long time ago, and I don't
    use it in Iris, but it's still been kicking around in i965.
    
    I hacked shader-db to print the binding table size in bytes, and
    observed no changes with this patch.  So, this code appears to do
    nothing useful.
    
    Acked-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    04c2f12a