pan/tex: Allow format reinterpretation on v9+
Creating views of images using a different format should be possible as long as the internal layout match. Pick the format of the view rather than the original image format when creating texture planes on v9. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30695>
This commit is contained in:
committed by
Marge Bot
parent
6b49b1708e
commit
62a63b69ec
@@ -364,7 +364,7 @@ panfrost_emit_plane(const struct pan_image_view *iview, int index,
|
||||
mali_ptr plane2_ptr, void **payload)
|
||||
{
|
||||
const struct util_format_description *desc =
|
||||
util_format_description(layout->format);
|
||||
util_format_description(format);
|
||||
|
||||
assert(row_stride >= 0 && surface_stride >= 0 && "negative stride");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user