On 03/18/2016 07:31 PM, Michael Thayer wrote:
Hello Alex,
On 18.03.2016 10:42, Alexandre Courbot wrote:
Hello Michael,
On 03/18/2016 06:09 PM, Michael Thayer wrote:
In that context, see this patch to Modesetting which I send a couple of
weeks ago, which should incidentally also fix your issue:
https://patchwork.freedesktop.org/patch/75985/
I applied your patch, but sadly it didn't fix my issue. I agree that
your approach (actually returning drmmode_set_cursor() errors instead of
relying on a side-effect) is better though. But it appears that I would
need drmmode_show_cursor()'s errors to be reported for the same approach
to work in my case.
I see that the load_cursor_argb_check() hook has been added apparently
to palliate the fact that load_cursor_argb() does not return an error
status, would it be acceptable to apply the same principle to
show_cursor()?
It certainly makes sense to me (noting that the *_check() hooks were
Keith's idea). Not sure off-hand how much you would have to change in
the main X server code to make that work.
Not too much as it turns out ; actually since this hook is used in only
one place, we can safely change its signature instead of adding a
variant. I have just sent the patch that does this.
Thanks for your feedback!
Alex.
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel