mesa/src
Andreas Boll 6d164f65c5 glx: Fix returned values of GLX_RENDERER_PREFERRED_PROFILE_MESA
If the renderer supports the core profile the query returned incorrectly
0x8 as value, because it was using (1U << __DRI_API_OPENGL_CORE) for the
returned value.

The same happened with the compatibility profile. It returned 0x1
(1U << __DRI_API_OPENGL) instead of 0x2.

Internal DRI defines:
   dri_interface.h: #define __DRI_API_OPENGL       0
   dri_interface.h: #define __DRI_API_OPENGL_CORE  3

Those two bits are supposed for internal usage only and should be
translated to GLX_CONTEXT_CORE_PROFILE_BIT_ARB (0x1) for a preferred
core context profile and GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB (0x2)
for a preferred compatibility context profile.

This patch implements the above translation in the glx module.

v2: Fix the incorrect behavior in the glx module

Cc: "10.3 10.4 10.5" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2015-02-25 08:23:38 +01:00
..
egl egl, wayland: RGB565 format support on Back-buffer 2015-02-23 14:07:02 -08:00
gallium targets/libgl-xlib: add src/ include dir to fix build 2015-02-24 14:44:19 -07:00
gbm gbm: Define _DEFAULT_SOURCE to avoid warning 2015-01-16 21:54:54 -08:00
getopt
glsl glsl: add double support for packing varyings 2015-02-24 22:07:29 -05:00
glx glx: Fix returned values of GLX_RENDERER_PREFERRED_PROFILE_MESA 2015-02-25 08:23:38 +01:00
gtest gtest: Add headers to distribution. 2014-12-12 12:11:46 -08:00
hgl hgl: traverse add-on entries 2014-12-10 14:01:01 +00:00
loader loader: not having a pci-id should not be a warn 2015-02-21 17:11:02 -05:00
mapi glapi: add ARB_gpu_shader_fp64 (v2) 2015-02-19 00:28:33 -05:00
mesa dri/common: Update comment about driQueryRendererIntegerCommon 2015-02-25 08:23:33 +01:00
util ra: Disable round-robin strategy for optimistically colorable nodes. 2015-02-23 20:55:40 +02:00
Makefile.am glsl: Build a libglsl_util library. 2015-01-23 14:28:44 -08:00
SConscript egl: Fix non-dri SCons builds re #87657 2014-12-25 10:34:49 -05:00