Skip to content

iris: move bindless surface state heap inside the surface state heap

Mark Janes requested to merge majanes/mesa:fix_dg2_surface_state into staging/22.3

We're about to make scratch surface states part of the surface state heap. Because those are required to be in the low 26bits parts surface state heap (we're limited in bits handed in the CFE_STATE, 3DSTATE_VS, etc... instructions), this change splits the 32bit surface state heap as follow:

  • 8Mb of surface states for scratch
  • 1Gb - 8Mb of binding tables
  • 3Gb of surface states

That way all of the surfaces are located within a 4Gb region visible from STATE_BASE_ADDRESS::SurfaceStateBaseAddress

Signed-off-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Reviewed-by: Kenneth Graunke kenneth@whitecape.org Part-of: !19727 (merged)

Merge request reports