[Mesa-dev] [PATCH 3/3] mesa: invalidate framebuffer when changing parameters

Marek Olšák maraeo at gmail.com
Tue Feb 2 19:16:57 UTC 2016


For the series:

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

Marek

On Sun, Jan 31, 2016 at 6:58 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> This fixes dEQP-GLES31.functional.fbo.completeness.no_attachments
>
> When the width or height are 0, the framebuffer is incomplete. We may
> also not have been passing the new state down to the driver when the
> widths/heights/etc changed. Make sure to dirty the state so that the
> framebuffer state is revalidated at draw time.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>
>  src/mesa/main/fbobject.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
> index 3be216d..2d4acb3 100644
> --- a/src/mesa/main/fbobject.c
> +++ b/src/mesa/main/fbobject.c
> @@ -1414,6 +1414,9 @@ framebuffer_parameteri(struct gl_context *ctx, struct gl_framebuffer *fb,
>        _mesa_error(ctx, GL_INVALID_ENUM,
>                    "%s(pname=0x%x)", func, pname);
>     }
> +
> +   invalidate_framebuffer(fb);
> +   ctx->NewState |= _NEW_BUFFERS;
>  }
>
>  void GLAPIENTRY
> --
> 2.4.10
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list