[PATCH qxl.ko] Use surface_id 0 for primary surface on all monitors

David Mansfield spice at dm.cobite.com
Tue Jun 3 07:56:05 PDT 2014


spice-server and downstream code expect that the primary surface
will always have surface_id = 0, while in reality, once allocated, the
surface_id in qxl.ko is NEVER 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 is only mapped to the correct identifier
(i.e. 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.

-- 
Thanks,
David Mansfield
Cobite, INC.


-------------- 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/dri-devel/attachments/20140603/eaf7dcf7/attachment.bin>


More information about the dri-devel mailing list