Bug 86191

Summary: Built-in modesetting driver illegal use of dumb frontbuffer with glamor
Product: xorg Reporter: Thomas Hellström <thellstrom>
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: blocker    
Priority: medium CC: eric, linux-graphics-maintainer, thellstrom
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Thomas Hellström 2014-11-12 08:32:16 UTC
In the built-in modesetting driver, function CreateScreenResources, the function
glamor_egl_create_textured_screen_ext() is called using a handle referencing a dumb buffer created with dumb_bo_create().

Accelerated rendering is not allowed to dumb buffers, causing this call to fail when EGL tries to import it as an image on, for example, vmware.

The correct approach here would be to use GBM to create the front bo. However, any mapping of that bo, replacing dumb_bo_map() would have to go through EGL / glamor as well
Comment 1 Adam Jackson 2018-06-13 19:01:25 UTC
glamor_egl_create_textured_screen_ext is now just an API stub around glamor_egl_create_textured_screen, which AFAICT modesetting no longer calls. Calling this fixed; there may still be other issues, but there isn't this issue anymore.

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.