mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 00:10:20 +01:00
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:
parent
b439bd5a58
commit
1cb2d2a5ee
2 changed files with 5 additions and 0 deletions
|
|
@ -122,6 +122,9 @@ v3d_setup_plane_slices(struct v3dv_image *image, uint8_t plane,
|
||||||
level_height = u_minify(pot_height, i);
|
level_height = u_minify(pot_height, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
slice->width = level_width;
|
||||||
|
slice->height = level_height;
|
||||||
|
|
||||||
if (i < 1)
|
if (i < 1)
|
||||||
level_depth = u_minify(depth, i);
|
level_depth = u_minify(depth, i);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -670,6 +670,8 @@ struct v3d_resource_slice {
|
||||||
uint32_t offset;
|
uint32_t offset;
|
||||||
uint32_t stride;
|
uint32_t stride;
|
||||||
uint32_t padded_height;
|
uint32_t padded_height;
|
||||||
|
uint32_t width;
|
||||||
|
uint32_t height;
|
||||||
/* Size of a single pane of the slice. For 3D textures, there will be
|
/* 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
|
* a number of panes equal to the minified, power-of-two-aligned
|
||||||
* depth.
|
* depth.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue