[Mesa-dev] [PATCH] intel: Set screen's api mask according to hw capabilities (v2)

Chad Versace chad.versace at linux.intel.com
Tue Nov 27 16:41:02 PST 2012


On 11/27/2012 04:39 PM, Ian Romanick wrote:
> On 11/27/2012 04:16 PM, Chad Versace wrote:


>> +   case 3:
>> +      bool has_fragment_shader = driQueryOptionb(&screen->optionCache,
>> "fragment_shader");
>> +      bool has_occlusion_query = driQueryOptionb(&screen->optionCache,
>> "stub_occlusion_query");
>> +
>> +      screen->max_gl_core_version = 0;
>> +      screen->max_gl_es1_version = 11;
>> +
>> +      if (has_fragment_shader && has_occlusion_query) {
>> +         screen->max_gl_compat_version = 21;
>> +      } else {
>> +         screen->max_gl_compat_version = 15;
> 
> This should be 14.  GL_ARB_occlusion_query became part of core in 1.5... it
> looks like this was a pre-existing bug... created by me. :(

Will fix. Thanks.



More information about the mesa-dev mailing list