Lines Matching defs:layout

58  * the layout(s) of the tiled modes, and whether they are the same
199 COND(rsc->layout.tile_mode, FD_BO_NOMAP) |
214 prsc->height0, prsc->depth0, rsc->layout.cpp, prsc->bind);
224 if (rsc->layout.ubwc) {
277 assert(memcmp(&dst->layout, &src->layout, sizeof(dst->layout)) == 0);
449 swap(rsc->layout, shadow->layout);
804 box->x / util_format_get_blockwidth(format) * rsc->layout.cpp +
844 if (rsc->layout.tile_mode) {
977 if ((usage & PIPE_MAP_DIRECTLY) && rsc->layout.tile_mode) {
1048 if (!rsc->layout.tile_mode)
1051 if (rsc->layout.ubwc_layer_size)
1093 struct fdl_layout *layout = &rsc->layout;
1095 layout->format = prsc->format;
1097 layout->width0 = prsc->width0;
1098 layout->height0 = prsc->height0;
1099 layout->depth0 = prsc->depth0;
1101 layout->cpp = util_format_get_blocksize(prsc->format);
1102 layout->cpp *= fd_resource_nr_samples(prsc);
1103 layout->cpp_shift = ffs(layout->cpp) - 1;
1224 * Helper that allocates a resource and resolves its layout (but doesn't
1259 enum fd_layout_type layout =
1261 if (layout == ERROR) {
1266 if (layout >= TILED)
1267 rsc->layout.tile_mode = screen->tile_mode(prsc);
1268 if (layout == UBWC)
1269 rsc->layout.ubwc = true;
1276 fdl_layout_buffer(&rsc->layout, size);
1292 if (rsc->layout.layer_first && !rsc->layout.layer_size) {
1293 rsc->layout.layer_size = align(size, 4096);
1294 size = rsc->layout.layer_size * prsc->array_size;
1298 fdl_dump_layout(&rsc->layout);
1407 rsc->layout.layer_first = true;
1408 rsc->layout.pitch0 = handle->stride;
1418 rsc->layout.pitchalign =
1419 fdl_cpp_shift(&rsc->layout) + util_logbase2(screen->info->gmem_align_w);
1424 rsc->layout.pitchalign = MAX2(rsc->layout.pitchalign, 6);
1426 rsc->layout.pitchalign = MAX2(rsc->layout.pitchalign, 5);
1428 if (rsc->layout.pitch0 < (prsc->width0 * rsc->layout.cpp) ||
1429 fd_resource_pitch(rsc, 0) != rsc->layout.pitch0)
1432 assert(rsc->layout.cpp);