Lines Matching defs:md
408 radv_is_valid_opaque_metadata(const struct radv_device *device, const struct radeon_bo_metadata *md)
410 if (md->metadata[0] != 1 || md->metadata[1] != si_get_bo_metadata_word1(device))
413 if (md->size_metadata < 40)
421 const struct radeon_bo_metadata *md)
426 if (md->u.gfx9.swizzle_mode > 0)
431 surface->u.gfx9.swizzle_mode = md->u.gfx9.swizzle_mode;
433 surface->u.legacy.pipe_config = md->u.legacy.pipe_config;
434 surface->u.legacy.bankw = md->u.legacy.bankw;
435 surface->u.legacy.bankh = md->u.legacy.bankh;
436 surface->u.legacy.tile_split = md->u.legacy.tile_split;
437 surface->u.legacy.mtilea = md->u.legacy.mtilea;
438 surface->u.legacy.num_banks = md->u.legacy.num_banks;
440 if (md->u.legacy.macrotile == RADEON_LAYOUT_TILED)
442 else if (md->u.legacy.microtile == RADEON_LAYOUT_TILED)
466 const struct radeon_bo_metadata *md = create_info->bo_metadata;
469 width = G_00A004_WIDTH_LO(md->metadata[3]) + (G_00A008_WIDTH_HI(md->metadata[4]) << 2) + 1;
470 height = G_00A008_HEIGHT(md->metadata[4]) + 1;
472 width = G_008F18_WIDTH(md->metadata[4]) + 1;
473 height = G_008F18_HEIGHT(md->metadata[4]) + 1;
1239 struct radeon_bo_metadata *md)
1256 image->info.levels, desc, &md->size_metadata, md->metadata);