Lines Matching defs:desc
71 panfrost_compression_tag(const struct util_format_description *desc,
103 } else if (desc->layout == UTIL_FORMAT_LAYOUT_ASTC) {
104 if (desc->block.depth > 1) {
105 return (panfrost_astc_dim_3d(desc->block.depth) << 4) |
106 (panfrost_astc_dim_3d(desc->block.height) << 2) |
107 panfrost_astc_dim_3d(desc->block.width);
109 return (panfrost_astc_dim_2d(desc->block.height) << 3) |
110 panfrost_astc_dim_2d(desc->block.width);
379 const struct util_format_description *desc =
398 if (desc->layout == UTIL_FORMAT_LAYOUT_ASTC) {
401 if (desc->block.depth > 1) {
403 cfg.astc._3d.block_width = panfrost_astc_dim_3d(desc->block.width);
404 cfg.astc._3d.block_height = panfrost_astc_dim_3d(desc->block.height);
405 cfg.astc._3d.block_depth = panfrost_astc_dim_3d(desc->block.depth);
408 cfg.astc._2d.block_width = panfrost_astc_dim_2d(desc->block.width);
409 cfg.astc._2d.block_height = panfrost_astc_dim_2d(desc->block.height);
412 bool srgb = (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB);
452 ASSERTED const struct util_format_description *desc =
465 base |= panfrost_compression_tag(desc, layout->dim, layout->modifier);
469 assert(PAN_ARCH >= 5 || desc->layout != UTIL_FORMAT_LAYOUT_ASTC);