Bug 24211 - glXQueryContext returns 1 for GLX_RENDER_TYPE attribute
Summary: glXQueryContext returns 1 for GLX_RENDER_TYPE attribute
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLX (show other bugs)
Version: 7.5
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-29 05:16 UTC by Andrey Tsyvarev
Modified: 2009-09-30 14:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch for glx (1.18 KB, patch)
2009-09-29 09:29 UTC, Brian Paul
Details | Splinter Review

Description Andrey Tsyvarev 2009-09-29 05:16:11 UTC
According to the specification, glXQueryContext() for attribute GLX_RENDER_TYPE should return (through 'value') type of rendering, supporting by context. Notably, GLX_RGBA_TYPE of GLX_COLOR_INDEX_TYPE.

But for simple context, created with GLX_RGBA_TYPE(from GLXFBConfig with the same parameter), glXQueryContext() returns 1, which is neither GLX_RGBA_TYPE constant, nor GLX_COLOR_INDEX_TYPE.

Was tested on different Linux's and platforms.
Comment 1 Brian Paul 2009-09-29 09:29:39 UTC
Created attachment 29947 [details] [review]
patch for glx

Here's a patch that fixes the issue.

Ian, can you take a quick look at this before I commit it?
Comment 2 Ian Romanick 2009-09-30 12:23:36 UTC
(In reply to comment #1)
> Created an attachment (id=29947) [details]
> patch for glx
> 
> Here's a patch that fixes the issue.
> 
> Ian, can you take a quick look at this before I commit it?
> 

That patch looks good.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Comment 3 Brian Paul 2009-09-30 14:16:52 UTC
patch applied to 7.6 branch.  commit 521e4b9b7e3c79e7362f7cbd594a2e8cf74cdfe4



Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.