~m11g5w-3-5lmmq9/spice-vdi/trunk

Viewing all changes in revision 633.

  • Committer: Christophe Fergeau
  • Author(s): Jonathon Jongsma
  • Date: 2018-11-13 09:45:12 UTC
  • Revision ID: git-v1:505a8bb0cd82e2a50fcf18ed4647788adacef6ee
Make output name numbering 1-based

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
special-cases.

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: Jonathon Jongsma <jjongsma@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: