[Spice-devel] [PATCH 1/2] [qxl.ko] stability for dual head: use surface_id 0 for primary surface on all monitors

David Mansfield spice at dm.cobite.com
Mon May 19 07:01:55 PDT 2014


spice-server and downstream code expect that the primary surface will 
always have surface_id = 0.  In a dual head environment, all monitors 
render portions of the primary surface.

However, when the monitor config events are generated and sent, the 
primary surface (which has an internal id which is NEVER 0 once it is 
allocated), is only mapped to the correct identifier (0) for the primary 
head (where crtc index is 0).

The fix is to look at the "primary" flag in the bo and always use id 0, 
irrespective of which head is being configured.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qxl_force_primary_surface.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20140519/4e89576a/attachment.bin>


More information about the Spice-devel mailing list