Skip to content

Conversation

@ondracka
Copy link

@ondracka ondracka commented Jan 7, 2026

The GLES2 shader path only zeroed G/B when internalFormat was the unsized GL_DEPTH_COMPONENT/GL_DEPTH_STENCIL, so sized depth formats exposed by OES_required_internalformat (e.g. GL_DEPTH_COMPONENT16/24) were treated as color. Just check the unsized format for the depth/stencil.

Components: OpenGL

Affected tests:
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component16
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_short_depth_component16
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component24
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component32

ArthurVasseur and others added 5 commits November 16, 2025 12:21
The LIMIT_FORMAT_BITMASK validation uses deUint32 for checking the
limit value but incorrectly casts to deUint64 when logging the actual
value. This causes incorrect values to be displayed in the logs.

This bug was originally introduced in c82c0fa (2016) and persisted
through the de* type removal in 1a09796 (2023).
VK-GL-CTS/framework/delibs/deutil/deProcess.c: In function 'deProcess_create':
VK-GL-CTS/framework/delibs/deutil/deProcess.c:141:16: error: incompatible types when returning type '_Bool' but 'deProcess *' {aka 'struct deProcess_s *'} was expected
  141 |         return false;
      |                ^~~~~

Signed-off-by: _VIFEXTech <[email protected]>
…nt64-cast

fix: incorrect uint64_t cast in bitmask limit validation
…rn_false

Fixed the error in the return value type of deProcess_create
The GLES2 shader path only zeroed G/B when internalFormat was the unsized
GL_DEPTH_COMPONENT/GL_DEPTH_STENCIL, so sized depth formats exposed by
OES_required_internalformat (e.g. GL_DEPTH_COMPONENT16/24) were treated
as color. Just check the unsized format for the depth/stencil.

Components: OpenGL

Affected tests:
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component16
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_short_depth_component16
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component24
KHR-GLES2.core.internalformat.texture2d.depth_component_unsigned_int_depth_component32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants