mesa: invalidate framebuffer when changing parameters
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 23 Jan 2016 14:27:22 +0000 (09:27 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 2 Feb 2016 22:08:46 +0000 (17:08 -0500)
commit095da3b550be9f57a559ee3e549b15f3db4cf567
treec5e009b181430941fe2b8ad91589293ef4b0444b
parentbeac7b1b8b0a74bbf0ef76e681a31c98e9250e55
mesa: invalidate framebuffer when changing parameters

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@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c