[Mesa-dev] [PATCH] mesa/fbobject: propogate Layered when reusing attachments.

Marek Olšák maraeo at gmail.com
Mon Feb 29 10:31:40 UTC 2016


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Mon, Feb 29, 2016 at 8:17 AM, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> When reusing a depth attachment as a stencil, we need to propogate
> the layered bit, otherwise we fail to complete the framebuffer.
>
> discovered running ./bin/fbo-depth-array depth-layered-clear
> on virgl on haswell.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>  src/mesa/main/fbobject.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index 84f399d..f618663 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -2815,6 +2815,7 @@ reuse_framebuffer_texture_attachment(struct gl_framebuffer *fb,
>     dst_att->Complete = src_att->Complete;
>     dst_att->TextureLevel = src_att->TextureLevel;
>     dst_att->Zoffset = src_att->Zoffset;
> +   dst_att->Layered = src_att->Layered;
>  }
>
>
> --
> 2.5.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list