mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 00:08:09 +02:00
pan/texture: Correctly handle slice stride for MSAA
Currently, we will always be setting the slice stride in the plane descriptor to the surface stride, as the check for multisampling is true even for single sampled surfaces. This change fixes this check. 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 commitcc58e30847)
This commit is contained in:
parent
2da50834fe
commit
684d6f0d68
2 changed files with 2 additions and 2 deletions
|
|
@ -1144,7 +1144,7 @@
|
|||
"description": "pan/texture: Correctly handle slice stride for MSAA",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "db20152c8a85a425dd54b27cc00961d2b5a4650f",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -435,7 +435,7 @@ panfrost_emit_plane(const struct pan_image_view *iview,
|
|||
cfg.two_plane_yuv_chroma.secondary_pointer =
|
||||
sections[plane_index + 1].pointer;
|
||||
} else if (!panfrost_format_is_yuv(layout->format)) {
|
||||
cfg.slice_stride = layout->nr_samples
|
||||
cfg.slice_stride = layout->nr_samples > 1
|
||||
? surface_stride
|
||||
: panfrost_get_layer_stride(layout, level);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue