GSDF_SURFACE_TILE_OFFSET#
Defined in src/device/vpu_runtime/include/cupva_device/gatherscatter_dataflow.h
-
GSDF_SURFACE_TILE_OFFSET(_type, _tile_pitch)#
Starting offset (in pixels) to the top left corner of the first tile.
When reading from surfaces, additional space is required in VMEM for alignment purposes. The alignment is to the left and top of the tiles, which means that the first tile will not start at the address given to cupvaGSDFUpdateVmemAddr() but at an offset from that address. This macro will compute the offset (in pixels) from the address given to cupvaGSDFUpdateVmemAddr to the top-left pixel of the first tile.
- Parameters:
_type – argument, the pixel data type
_tile_pitch – The line pitch of a tile, specified in pixels