Skip to content

mesa: fix error-handling for ETC2/RGTC textures

Erik Faye-Lund requested to merge kusma/mesa:ext-texture-storage-hotfix into main

It seems we missed an error-case that got introduced in OpenGL 4.4.

While this error doesn't technically exist as-is in OpenGL ES before version 3, neither does 3D textures. And while OES_texture_3D introduces it to OpenGL ES 2.0 without adding the same error for ETC2 textures, that is likely an omission in the spec; 3D ETC2 texture was never a thing.

This fixes a regression in the confidential Khronos CTS, specifically GL46.gtf42.GL3Tests.texture_storage.texture_storage_compressed_texture_data

Fixes: 652a898d ("mesa/main: add support for EXT_texture_storage") Closes: #10545 (closed)

Edited by Erik Faye-Lund

Merge request reports