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: #3980 (closed) Signed-off-by: Tapani Pälli tapani.palli@intel.com