mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02: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",
|
"description": "pan/texture: Set plane size to slice size",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 2,
|
"nomination_type": 2,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f",
|
"because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
|
|
||||||
|
|
@ -429,7 +429,7 @@ panfrost_emit_plane(const struct pan_image_view *iview,
|
||||||
pan_cast_and_pack(*payload, PLANE, cfg) {
|
pan_cast_and_pack(*payload, PLANE, cfg) {
|
||||||
cfg.pointer = pointer;
|
cfg.pointer = pointer;
|
||||||
cfg.row_stride = row_stride;
|
cfg.row_stride = row_stride;
|
||||||
cfg.size = layout->data_size - layout->slices[level].offset;
|
cfg.size = layout->slices[level].size;
|
||||||
|
|
||||||
if (is_chroma_2p) {
|
if (is_chroma_2p) {
|
||||||
cfg.two_plane_yuv_chroma.secondary_pointer =
|
cfg.two_plane_yuv_chroma.secondary_pointer =
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue