From a64599a303ee8ded4bd6b3cef1f720bb7c308127 Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Sat, 7 Mar 2020 16:24:03 +0100 Subject: [PATCH] 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 Reviewed-by: Alyssa Rosenzweig Tested-by: Marge Bot Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 630f6753fd4..b72677b10bb 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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, -- 2.30.2