freedreno: Move the layout debug under FD_MESA_DEBUG=layout.
I keep wanting to turn this on while debugging layout stuff, and I suspect krh and robclark could use it too. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3059>
This commit is contained in:
@@ -78,6 +78,8 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
|
||||
layout->cpp = util_format_get_blocksize(format);
|
||||
layout->cpp *= nr_samples;
|
||||
layout->format = format;
|
||||
layout->nr_samples = nr_samples;
|
||||
|
||||
const struct util_format_description *format_desc =
|
||||
util_format_description(format);
|
||||
@@ -222,28 +224,6 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
layout->slices[level].offset += layout->ubwc_size * array_size;
|
||||
layout->size += layout->ubwc_size * array_size;
|
||||
}
|
||||
|
||||
if (false) {
|
||||
for (uint32_t level = 0; level < mip_levels; level++) {
|
||||
struct fdl_slice *slice = &layout->slices[level];
|
||||
struct fdl_slice *ubwc_slice = &layout->ubwc_slices[level];
|
||||
uint32_t tile_mode = (ubwc ?
|
||||
layout->tile_mode : fdl_tile_mode(layout, level));
|
||||
|
||||
fprintf(stderr, "%s: %ux%ux%u@%ux%u:\t%2u: stride=%4u, size=%6u,%6u, aligned_height=%3u, offset=0x%x,0x%x tiling=%d\n",
|
||||
util_format_name(format),
|
||||
u_minify(layout->width0, level),
|
||||
u_minify(layout->height0, level),
|
||||
u_minify(layout->depth0, level),
|
||||
layout->cpp, nr_samples,
|
||||
level,
|
||||
slice->pitch * layout->cpp,
|
||||
slice->size0, ubwc_slice->size0,
|
||||
slice->size0 / (slice->pitch * layout->cpp),
|
||||
slice->offset, ubwc_slice->offset,
|
||||
tile_mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user