Skip to content

anv: Stop compacting surface state tables

Faith Ekstrand requested to merge gfxstrand/mesa:anv/fix-secondary-rts-v2 into main

Instead of trying to compact the surface state table to get rid of any unused render targets, emit MAX(1, colorAttachmentCount) surface states always. This ensures that secondaries will always match with primaries when we go to do the copy since there's no rule requiring the secondary to have VK_FORMAT_UNDEFINED when the primary has a NULL image view.

Fixes: 3501a3f9 ("anv: Convert to 100% dynamic rendering")

Merge request reports