st/mesa: Bail on incomplete attachments in discard_framebuffer
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Sep 2019 21:33:51 +0000 (14:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 23 Sep 2019 04:03:16 +0000 (21:03 -0700)
commitec81f19b44951fbc0e6a8b381afe6d85834132b8
treed759d6aea7a39fe74b03d0bcf454e51daabcd31a
parentd2147787534de87cd11015266293211b5188442f
st/mesa: Bail on incomplete attachments in discard_framebuffer

Incomplete attachments don't have an associated pipe_surface, so
this would crash.

Fixes a WebGL conformance test that uses incomplete attachments:
https://www.khronos.org/registry/webgl/sdk/tests/conformance2/renderbuffers/invalidate-framebuffer.html?webglVersion=2&quiet=0&quick=1

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111756
Reviewed-By: Tapani Pälli <tapani.palli@intel.com>
src/mesa/state_tracker/st_cb_fbo.c