Lines Matching defs:fmt
257 const struct util_format_description *fmt =
261 extent.width = DIV_ROUND_UP(extent.width, fmt->block.width);
262 extent.height = DIV_ROUND_UP(extent.height, fmt->block.height);
263 extent.depth = DIV_ROUND_UP(extent.depth, fmt->block.depth);
271 const struct util_format_description *fmt =
276 assert(offset.x % fmt->block.width == 0);
277 assert(offset.y % fmt->block.height == 0);
278 assert(offset.z % fmt->block.depth == 0);
280 offset.x /= fmt->block.width;
281 offset.y /= fmt->block.height;
282 offset.z /= fmt->block.depth;
300 const struct util_format_description *fmt = vk_format_description(format);
302 assert(fmt->block.bits % 8 == 0);
303 const uint32_t element_size_B = fmt->block.bits / 8;
306 DIV_ROUND_UP(row_length, fmt->block.width) * element_size_B;
308 DIV_ROUND_UP(image_height, fmt->block.height) * (uint64_t)row_stride_B;