mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
panfrost: Pass the sampler view format when creating a tex descriptor
A sampler can use a different format than the native texture format. Let's pass the sampler format instead of the native texture format when creating a texture descriptor. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101>
This commit is contained in:
parent
ce845f44e9
commit
a64599a303
1 changed files with 1 additions and 1 deletions
|
|
@ -2053,7 +2053,7 @@ panfrost_create_sampler_view(
|
|||
so->bo->cpu,
|
||||
texture->width0, texture->height0,
|
||||
texture->depth0, array_size,
|
||||
texture->format,
|
||||
template->format,
|
||||
type, prsrc->layout,
|
||||
template->u.tex.first_level,
|
||||
template->u.tex.last_level,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue