Skip to content

anv: Fixes for Spider-Man Remastered [v2]

Sviatoslav Peleshko requested to merge GL/mesa:spiderman_remastered_fixes into main

First commit addresses the creation of a buffer view that potentially exceeds the hardware limit.

The second one allows to allocate only a part of descriptor buffer views from the surface state pool, and instead store them in a regular memory until the emitting of the binding table. This only kicks into effect from 100k descriptors to limit potential performance hit, but I tested this with limit set to 0, and it passed the tests and worked in games I tried.

v2: The second one makes the surface states for descriptor buffer views to be allocated from a new secondary pool, located (1 << 26) bytes higher in surface state memory, as the binding table has no such size limits as extended message, leaving all 1M of surface states for the regular images, buffer views, etc.

Edited by Sviatoslav Peleshko

Merge request reports