Lines Matching defs:format

117  * Given a format, determine the tile size used for u-interleaving. For formats
122 panfrost_u_interleaved_tile_size(enum pipe_format format)
124 if (util_format_is_compressed(format))
136 panfrost_block_size(uint64_t modifier, enum pipe_format format)
139 return panfrost_u_interleaved_tile_size(format);
236 panfrost_block_size(layout->modifier, layout->format);
242 return width * util_format_get_blocksize(layout->format);
250 enum pipe_format format,
254 panfrost_block_size(modifier, format);
257 unsigned width = legacy_stride / util_format_get_blocksize(format);
279 * Return the minimum stride alignment in bytes for a given texture format.
281 * There is no format on any supported Mali with a minimum alignment greater
295 pan_stride_align_B(UNUSED enum pipe_format format)
301 pan_is_stride_aligned(enum pipe_format format, uint32_t stride_B)
303 return (stride_B % pan_stride_align_B(format)) == 0;
326 !(pan_is_stride_aligned(layout->format, explicit_layout->offset) &&
327 pan_is_stride_aligned(layout->format, explicit_layout->row_stride)))
330 unsigned fmt_blocksize = util_format_get_blocksize(layout->format);
344 panfrost_block_size(layout->modifier, layout->format);
362 unsigned effective_width = ALIGN_POT(util_format_get_nblocksx(layout->format, width), align_w);
363 unsigned effective_height = ALIGN_POT(util_format_get_nblocksy(layout->format, height), align_h);
391 assert(pan_is_stride_aligned(layout->format, row_stride) &&
433 assert(pan_is_stride_aligned(layout->format, slice->surface_stride) &&