GetInternalformativ with GL_TEXTURE_2D and GL_CLEAR_TEXTURE incrrectly returns GL_INVALID_ENUM
Issue
OpenGL 4.6 core specification, sect 22.3.1 Supported Operation Queries, states that GL_CLEAR_TEXTURE
is a valid enumerant, however Mesa-drivers up to and including version 22.2 return GL_INVALID_ENUM
.
GLint clearTexture;
gl.GetInternalformativ(GL_TEXTURE_2D, internalFormat, GL_CLEAR_TEXTURE, 1, &clearTexture);
gives GL_INVALID_ENUM
instead of filling in the param data in clearTexture
.
System information
inxi -GSC -xx
System: Host: leap Kernel: 5.14.21-150400.24.21-default x86_64 bits: 64 compiler: gcc v: 7.5.0
Desktop: KDE Plasma 5.24.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM Distro: openSUSE Leap 15.4
CPU: Info: 32-Core (4-Die) model: AMD Ryzen Threadripper PRO 3975WX s bits: 64 type: MT MCP MCM arch: Zen 2 rev: 0
cache: L2: 16 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 447148
Speed: 2195 MHz min/max: 2200/3500 MHz boost: enabled Core speeds (MHz): 1: 2195 2: 2195 3: 2194 4: 2193 5: 2195
6: 2194 7: 2195 8: 2198 9: 2129 10: 2192 11: 2195 12: 2194 13: 2195 14: 2196 15: 2194 16: 2193 17: 2193 18: 2197
19: 2194 20: 2196 21: 2192 22: 2192 23: 2192 24: 2197 25: 2195 26: 2194 27: 2196 28: 2196 29: 2195 30: 2190
31: 2195 32: 2192 33: 2194 34: 2194 35: 2193 36: 2195 37: 2196 38: 2189 39: 2196 40: 2194 41: 2196 42: 2218
43: 2197 44: 2189 45: 2940 46: 2197 47: 2194 48: 2181 49: 2194 50: 2180 51: 2195 52: 2195 53: 2193 54: 2196
55: 2194 56: 2195 57: 2195 58: 2196 59: 2836 60: 2195 61: 2184 62: 1955 63: 2195 64: 2195
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] vendor: Micro-Star MSI
driver: amdgpu v: kernel bus-ID: 43:00.0 chip-ID: 1002:73bf
Display: x11 server: X.Org 1.20.3 compositor: kwin_x11 driver: loaded: amdgpu,ati
unloaded: fbdev,modesetting,radeon,vesa resolution: 2560x1440 s-dpi: 96
OpenGL: renderer: AMD Radeon RX 6900 XT (SIENNA_CICHLID DRM 3.42.0 5.14.21-150400.24.21-default LLVM 11.0.1)
v: 4.6 Mesa 21.2.4 direct render: Yes