mesa/fbobject: propogate Layered when reusing attachments.
authorDave Airlie <airlied@redhat.com>
Mon, 29 Feb 2016 07:16:10 +0000 (17:16 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 29 Feb 2016 21:34:37 +0000 (07:34 +1000)
commit35859d5bbba998aa41ec87bc53d946add4662dea
tree264d7cc24d8b5f4115f0f5cf27b86fa5c2c70e8b
parent83bc2acfe90fd2e503bab4b5a586c1e2822863f5
mesa/fbobject: propogate Layered when reusing attachments.

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.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/fbobject.c