Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4034
Acked-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8387>
blit.src.resource = srcObj->pt;
blit.src.level = srcAtt->TextureLevel;
blit.src.box.z = srcAtt->Zoffset + srcAtt->CubeMapFace;
- blit.src.format = srcObj->pt->format;
+ blit.src.format = srcObj->surface_based ? srcObj->surface_format : srcObj->pt->format;
if (!ctx->Color.sRGBEnabled)
blit.src.format = util_format_linear(blit.src.format);