• Jonathon Jongsma's avatar
    Make output name numbering 1-based · 505a8bb0
    Jonathon Jongsma authored
    The QXL driver names its outputs starting at 0 (e.g. Virtual-0,
    Virtual-1, etc). This code was presumably copy/pasted from a different
    driver, and is not necessary for the QXL driver. Other drivers simply
    use the kernel connector_type_id which starts at 1. For example, the
    modesetting driver changed from 0-based names to 1-based names for the
    same reason in xserver commit 139e36dd.
    This will help to make it easier to identify which xrandr outputs belong
    to which drm connector without requiring as many driver-specific
    This change might effect custom xorg configurations that references a
    specific output name. But the same change was made in modesetting driver
    despite that possibility.
    Signed-off-by: 's avatarJonathon Jongsma <jjongsma@redhat.com>
    Acked-by: Frediano Ziglio's avatarFrediano Ziglio <fziglio@redhat.com>
qxl_drmmode.c 27.2 KB