Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(694)

Issue 5823049: GLX 1.3 fix (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by robertphillips
Modified:
12 years, 9 months ago
Reviewers:
bsalomon
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

GLX 1.3 fix The base issue here is that the default GLX implementation on some Linux laptops lies about its version numbering. Code in SkNativeGLContext_unix.cpp was checking the version number to avoid using FBConfigs in versions prior to 1.3. To resolve this I have added a configuration path using the pre-1.3 method (i.e., XGetVisualInfo and glXGetConfig). I have also removed the run-time check and added a #define to toggle between the two implementations. This allows us to use the FBConfigs with the wayward GLX implementation but have a backup plan if we ever really encounter an older implementation.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -16 lines) Patch
M src/gpu/unix/SkNativeGLContext_unix.cpp View 8 chunks +45 lines, -16 lines 4 comments Download

Messages

Total messages: 6
robertphillips
12 years, 9 months ago (2012-03-14 14:15:01 UTC) #1
bsalomon
Is there any advantage to us of using the FBConfigs when the driver claims 1.2 ...
12 years, 9 months ago (2012-03-14 14:48:11 UTC) #2
robertphillips
I believe if someone has a true 1.2 implementation the 1.3 code won't compile at ...
12 years, 9 months ago (2012-03-14 15:20:10 UTC) #3
robertphillips
http://codereview.appspot.com/5823049/diff/1/src/gpu/unix/SkNativeGLContext_unix.cpp File src/gpu/unix/SkNativeGLContext_unix.cpp (right): http://codereview.appspot.com/5823049/diff/1/src/gpu/unix/SkNativeGLContext_unix.cpp#newcode12 src/gpu/unix/SkNativeGLContext_unix.cpp:12: #define GLX_1_3 1 There are #defines in the header ...
12 years, 9 months ago (2012-03-14 15:20:20 UTC) #4
bsalomon
On 2012/03/14 15:20:20, robertphillips wrote: > http://codereview.appspot.com/5823049/diff/1/src/gpu/unix/SkNativeGLContext_unix.cpp > File src/gpu/unix/SkNativeGLContext_unix.cpp (right): > > http://codereview.appspot.com/5823049/diff/1/src/gpu/unix/SkNativeGLContext_unix.cpp#newcode12 > ...
12 years, 9 months ago (2012-03-14 15:28:00 UTC) #5
robertphillips
12 years, 9 months ago (2012-03-14 18:09:49 UTC) #6
Committed as r3384
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b