mesa/main: verify more texture-limits for GL 4.1
OpenGL 4.1 also increased the minimum 3D and cube texture size as well as the minimum number of texture-array layers. Let's also verify these to prevent enbaling too recent GL versions on layered drivers link Zink, VirGL etc. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19780>
This commit is contained in:

committed by
Marge Bot

parent
dc770eb9bb
commit
2658d02516
@@ -335,6 +335,9 @@ compute_version(const struct gl_extensions *extensions,
|
||||
consts->GLSLVersion >= 410 &&
|
||||
consts->MaxTextureSize >= 16384 &&
|
||||
consts->MaxRenderbufferSize >= 16384 &&
|
||||
consts->MaxCubeTextureLevels >= 15 &&
|
||||
consts->Max3DTextureLevels >= 12 &&
|
||||
consts->MaxArrayTextureLayers >= 2048 &&
|
||||
extensions->ARB_ES2_compatibility &&
|
||||
extensions->ARB_shader_precision &&
|
||||
extensions->ARB_vertex_attrib_64bit &&
|
||||
|
Reference in New Issue
Block a user