GSDF_SURFACE_MIN_TILE_STRIDE#

Defined in src/device/vpu_runtime/include/cupva_device/gatherscatter_dataflow.h

GSDF_SURFACE_MIN_TILE_STRIDE(_type, _tw, _th)#

Minimum stride between tiles (in pixels) required to support reads from surfaces.

When reading from surfaces, additional space is required in VMEM for alignment purposes. This macro may be used to calculate the minimum stride between tiles to ensure proper alignment. See cupvaGSDFUpdateVmemAddr() for more details.

Parameters:
  • _type – argument, the pixel data type

  • _tw – Tile width in pixel

  • _th – Tile height in pixel