mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 03:50:13 +01:00
i965: Allow viewport array extensions with allow_higher_compat_version
Also fix the obtuse comment. I had to dig back through the commit logs to find the real issue. GL_ARB_viewport_array requires geometry shaders, and in i965 the only way to have that is with a 3.2+ Core profile context... or use allow_higher_compat_version. This increases the maximum Compatibility profile version from 4.0 to 4.6 (on supported hardware) when the allow_higher_compat_version option is used. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7118>
This commit is contained in:
parent
9223842c6b
commit
de77fabe13
1 changed files with 5 additions and 3 deletions
|
|
@ -220,10 +220,12 @@ intelInitExtensions(struct gl_context *ctx)
|
|||
ctx->Extensions.EXT_disjoint_timer_query =
|
||||
ctx->Extensions.ARB_timer_query;
|
||||
|
||||
/* Only enable this in core profile because other parts of Mesa behave
|
||||
* slightly differently when the extension is enabled.
|
||||
/* Only enable this in core profile because geometry shaders are
|
||||
* required, and Mesa only supports geometry shaders in OpenGL 3.2 and
|
||||
* later. In this driver, that currently means Core profile.
|
||||
*/
|
||||
if (ctx->API == API_OPENGL_CORE) {
|
||||
if (ctx->API == API_OPENGL_CORE ||
|
||||
ctx->Const.AllowHigherCompatVersion) {
|
||||
ctx->Extensions.ARB_shader_viewport_layer_array = true;
|
||||
ctx->Extensions.ARB_viewport_array = true;
|
||||
ctx->Extensions.AMD_vertex_shader_viewport_index = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue