v3dv: store slice dimensions in pixels

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23180>
This commit is contained in:
Iago Toral Quiroga 2023-05-22 13:55:14 +02:00 committed by Marge Bot
parent b439bd5a58
commit 1cb2d2a5ee
2 changed files with 5 additions and 0 deletions

View file

@ -122,6 +122,9 @@ v3d_setup_plane_slices(struct v3dv_image *image, uint8_t plane,
level_height = u_minify(pot_height, i);
}
slice->width = level_width;
slice->height = level_height;
if (i < 1)
level_depth = u_minify(depth, i);
else

View file

@ -670,6 +670,8 @@ struct v3d_resource_slice {
uint32_t offset;
uint32_t stride;
uint32_t padded_height;
uint32_t width;
uint32_t height;
/* Size of a single pane of the slice. For 3D textures, there will be
* a number of panes equal to the minified, power-of-two-aligned
* depth.