mesa: Skip partial InvalidateFramebuffer of packed depth/stencil.
authorEric Anholt <eric@anholt.net>
Wed, 30 Jan 2019 17:33:53 +0000 (09:33 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 31 Jan 2019 16:37:46 +0000 (08:37 -0800)
commitdb2ae51121067b66d4ee8313ba7f74cecb201a03
tree80809ed77b743b7b2fb3f8cd1de196b577c3e383
parent39cfdf9930659b01cd89f0fbc29c43c623e17d2d
mesa: Skip partial InvalidateFramebuffer of packed depth/stencil.

One of the CTS cases tries to invalidate just stencil of packed
depth/stencil, and we incorrectly lost the depth contents.

Fixes dEQP-GLES3.functional.fbo.invalidate.whole.unbind_read_stencil
Fixes: 0c42b5f3cb90 ("mesa: wire up InvalidateFramebuffer")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/fbobject.c