OSDN Git Service

i965: Set kernel features before computing max GL version.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 15:33:20 +0000 (08:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Apr 2017 15:58:16 +0000 (08:58 -0700)
commit02ccd8f52cffcc25e5fefdd0f900cf04230395f4
treeb6028cb26adfb953275ae0194d41a4739b345e9c
parent8d7a82ae321e6316a7ab521a24f9cf569b9bd0c3
i965: Set kernel features before computing max GL version.

We check these bitfields when computing the Haswell max GL version.
We need to set them ahead of time, or they won't exist, and all our
checks will fail.  That sets the max core profile GL version to 4.2.

This introduces the bizarre situation where asking for a GL context
with version 4.3+ fails, but asking for a GL core profile context
with version <= 4.2 actually promotes you a 4.5 context.

GLX_MESA_query_renderer also reported the bogus 4.2 value.
Now it shows 4.5.

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reported-and-tested-by: Rafael Ristovski <rafael.ristovski@gmail.com>
src/mesa/drivers/dri/i965/intel_screen.c