Bug 104640

Summary: --scale --transform etc fail when changed in a specific way
Product: xorg Reporter: Arsalan Awan <Arsalan_Awan>
Component: App/xrandrAssignee: Keith Packard <keithp>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: major    
Priority: high CC: Arsalan_Awan
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
--scale --transform etc fail when changed in a specific way none

Description Arsalan Awan 2018-01-15 13:52:09 UTC
Created attachment 136727 [details]
--scale --transform etc fail when changed in a specific way

Whenever scale value is increased when it is between 0.0 - 1.0
and is kept within 0.0 - 1.0 range, the display does not expand
to fullscreen. It rather becomes smaller and leaves blank spaces on
the right and bottom sides. And the following error message shows up:

X Error of failed request: BadMatch (invalid parameter attributes)
  Major opcode of failed request: 139 (RANDR)
  Minor opcode of failed request: 7 (RRSetScreenSize)
  Serial number of failed request: 36
  Current serial number in output stream: 38

Before xrandr attempts to apply the transformation matrix requested
by "scale", "transform" or "scale-from" options, it disables the
CRTCs for which the transformed image's dimensions are larger than the
target display's resolution/mode. But, when the image is smaller, it
does not disable the CRTCs, and proceeds with applying the
transformation (involves framebuffer dimension changes). This works well
for all the scale values and transitions except for the above-mentioned
transitions.

Also, see the attached png where I have represented the problem in a state diagram. Green represents successful, whereas Red represents failed state transition.

I have submitted a patch for this issue as well (https://lists.x.org/archives/xorg-devel/2017-December/055482.html), but couldn't hear from anyone for a while, therefore reported it here.

I have described in that patch on how to reproduce the issue.

Build 2017-12-21 on Yocto Linux & on Ubuntu 16.04.3 LTS
Comment 1 Arsalan Awan 2018-01-24 10:53:30 UTC
ping
Comment 2 GitLab Migration User 2018-08-10 20:34:54 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/app/xrandr/issues/36.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.