freedreno: Rename the UBWC layer size field and store it as bytes.
This makes the field description match its usage in the code, matches tu's usage of the field, and avoids storing values in surprising units. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3059>
This commit is contained in:
@@ -198,8 +198,8 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
|
||||
ubwc_slice->size0 = align(meta_pitch * meta_height, UBWC_PLANE_SIZE_ALIGNMENT);
|
||||
ubwc_slice->pitch = meta_pitch;
|
||||
ubwc_slice->offset = layout->ubwc_size;
|
||||
layout->ubwc_size += ubwc_slice->size0;
|
||||
ubwc_slice->offset = layout->ubwc_layer_size;
|
||||
layout->ubwc_layer_size += ubwc_slice->size0;
|
||||
}
|
||||
|
||||
depth = u_minify(depth, 1);
|
||||
@@ -221,8 +221,8 @@ fdl6_layout(struct fdl_layout *layout,
|
||||
*/
|
||||
if (ubwc) {
|
||||
for (uint32_t level = 0; level < mip_levels; level++)
|
||||
layout->slices[level].offset += layout->ubwc_size * array_size;
|
||||
layout->size += layout->ubwc_size * array_size;
|
||||
layout->slices[level].offset += layout->ubwc_layer_size * array_size;
|
||||
layout->size += layout->ubwc_layer_size * array_size;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user