mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 09:10:32 +01:00
pan/texture: Set plane size to slice size
Rather than setting the plane size to the full allocation minus the current offset, set it to the actual size of the plane. Fixes:db20152c8a("panfrost: Handle Valhall texturing") Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34839> (cherry picked from commit6a9a4b3eef)
This commit is contained in:
parent
8d907f8719
commit
bdc7e7a786
2 changed files with 2 additions and 2 deletions
|
|
@ -3714,7 +3714,7 @@
|
|||
"description": "pan/texture: Set plane size to slice size",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ panfrost_emit_plane(const struct pan_image_view *iview,
|
|||
pan_cast_and_pack(*payload, PLANE, cfg) {
|
||||
cfg.pointer = pointer;
|
||||
cfg.row_stride = row_stride;
|
||||
cfg.size = layout->data_size - layout->slices[level].offset;
|
||||
cfg.size = layout->slices[level].size;
|
||||
|
||||
if (is_chroma_2p) {
|
||||
cfg.two_plane_yuv_chroma.secondary_pointer =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue