mesa: fix layered framebuffer attachment target check
authorTapani Pälli <tapani.palli@intel.com>
Tue, 15 Dec 2020 11:15:29 +0000 (13:15 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Dec 2020 07:47:44 +0000 (07:47 +0000)
commit296d8662dc68612c41d0e488d9b8bdf51e674b06
treee3fd478f27446dc1c23d6c9dc53987c39f7fb69f
parent448e60314ae0956af92cfac1a63a783a8f94ece7
mesa: fix layered framebuffer attachment target check

Current code was making the layer target checking for depth and stencil
attachments as well while the check in spec is specified only for color.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3980
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8102>
src/mesa/main/fbobject.c