Bug 27682 - swrast does not support GLX1.3 API of glXCreateWindow
Summary: swrast does not support GLX1.3 API of glXCreateWindow
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: GLX (show other bugs)
Version: 7.6
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-15 22:08 UTC by Zhiyuan
Modified: 2015-05-21 17:00 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
test case to show the error of "glXCreateWindow" in swrast (2.14 KB, application/octet-stream)
2010-04-15 22:12 UTC, Zhiyuan
Details

Description Zhiyuan 2010-04-15 22:08:51 UTC
glXCreateWindow() in mesa/src/glx/x11/ will call createDrawable() provided by dri backends. Right now the swrast implementation of that function (in mesa/src/glx/x11/drisw_glx.c) is quite like DRI implementation, which does not allow to have a new created drawable for GLX. Only DRI2 can work well. If the graphic driver does not support DRI2, or X client application is forced to run on swrast, there would be problems.

How to reproduce:

1, Find a Linux machine with GLX1.3 or higher supported
2, compile the attached test case with:
      gcc -o test_glXCreateWindow test_glXCreateWindow.c -lGL
3, run the application with:
      LIBGL_ALWAYS_SOFTWARE=yes ./test_glXCreateWindow

4, MESA will then report "failed to create drawable"
Comment 1 Zhiyuan 2010-04-15 22:12:58 UTC
Created attachment 35079 [details]
test case to show the error of "glXCreateWindow" in swrast
Comment 2 Adam Jackson 2015-05-21 17:00:04 UTC
Works fine with 10.5.4.


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.