Query default FBO Depth, Stencil only when format requires
authorTapani Pälli <tapani.palli@intel.com>
Tue, 21 Dec 2021 06:19:46 +0000 (08:19 +0200)
committerMatthew Netsch <quic_mnetsch@quicinc.com>
Fri, 7 Jan 2022 18:35:37 +0000 (18:35 +0000)
commita381cb85144707179d483747d616f7fa61f34bf0
tree0f04c90a5e9eb452cbac4e0862f29da9c702ff07
parent02db5215caebca8847613d0c71b29910ee019683
Query default FBO Depth, Stencil only when format requires

Earlier commit removed DSA usage but introduced a problem with
framebuffer parameter type and size queries in some configs.

Without DSA, we get errors if querying for attachment that does
not exist in framebuffer. Patch introduces a check to make sure
we do not query for separate depth/stencil attachment if that
would not exist in format.

VK-GL-CTS issue: 3092

Affects:
KHR-*.internalformat.renderbuffer.*

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Change-Id: I65ba7f74e5abd3a5bff17cd74ca4abcdf3f0ab53
external/openglcts/modules/common/glcInternalformatTests.cpp