Skip to content

freedreno/a6xx: vsc size calculations

Rob Clark requested to merge robclark/mesa:wip/vsc-size into master

This still comes up with some fairly conservative sizes:

pre-resize VSC_PRIM_STRM_PITCH to: 0x1c000
pre-resize VSC_DRAW_STRM_PITCH to: 0x4000
pre-resize VSC_PRIM_STRM_PITCH to: 0x20000
pre-resize VSC_PRIM_STRM_PITCH to: 0x24000
pre-resize VSC_PRIM_STRM_PITCH to: 0x28000
pre-resize VSC_PRIM_STRM_PITCH to: 0x2c000
pre-resize VSC_PRIM_STRM_PITCH to: 0x30000

vs sizes based on overflow detection:

resized VSC_PRIM_STRM_PITCH to: 0x2080
resized VSC_PRIM_STRM_PITCH to: 0x4100
resized VSC_DRAW_STRM_PITCH to: 0x880

But slightly lower compared to what blob comes up with:

  30: DI_PT_TRILIST(0,0-1919,1079):90:RM6_BINNING:      00010040        VSC_DRAW_STRM_PITCH: 0x10040
  30: DI_PT_TRILIST(0,0-1919,1079):90:RM6_BINNING:      0003fc40        VSC_PRIM_STRM_PITCH: 0x3fc40
Edited by Rob Clark

Merge request reports