Skip to contentSkip to conversation

New: xrandr scaling / transform does not work with radeon

Bug 80678 [email protected] 1 participant 11 messages Jun 29, 2014 – Feb 25, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=80678

Priority: medium
Bug ID: 80678
Assignee: [email protected]
Summary: xrandr scaling / transform does not work with radeon
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: XOrg CVS
Component: DRM/Radeon
Product: DRI

Scaling doesn't work with radeon. Screen rotation does work, though.

On a laptop with intel driver, the following works fine, except the mouse pointer is confined to the mode area, but I believe that is a known xorg-server bug to which a patch is available in bug #39949:
xrandr --fb 1920x1080 --output eDP1 --mode 1600x900 --scale-from 1920x1080

The same command, adapted to the radeon output device doesn't work. Same software configuration (xorg-1.15.99.903, libdrm-git, mesa-git, xf86-video-ati-git, various kernel versions (at the moment 3.15.2)).

lspci -vvv:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cayman PRO [Radeon HD 6950] (prog-if 00 [VGA controller])
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Device 0b00
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort-
<MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 41
Region 0: Memory at e0000000 (64-bit, prefetchable) [size=256M] Region 2: Memory at f7e20000 (64-bit, non-prefetchable) [size=128K] Region 4: I/O ports at e000 [size=256]
Expansion ROM at f7e00000 [disabled] [size=128K]
Capabilities: [50] Power Management version 3
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [58] Express (v2) Legacy Endpoint, MSI 00
DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1
unlimited
ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal-
Unsupported-
RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop+ MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr-
TransPend-
LnkCap: Port #0, Speed 5GT/s, Width x16, ASPM L0s L1, Exit
Latency L0s <64ns, L1 <1us
ClockPM- Surprise- LLActRep- BwNot-
LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+
DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis-, LTR-,
OBFF Not Supported
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-,
OBFF Disabled
LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range,
EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -3.5dB,
EqualizationComplete-, EqualizationPhase1-
EqualizationPhase2-, EqualizationPhase3-,
LinkEqualizationRequest-
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Address: 00000000fee0100c Data: 4191
Capabilities: [100 v1] Vendor Specific Information: ID=0001 Rev=1
Len=010 <?>
Capabilities: [150 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt-
RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt-
RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
AERCap: First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
Kernel driver in use: radeon

Is scaling not implemented in radeon?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #1 from Alex Deucher <[email protected]> --- I'm not sure if EXA supports those options. You might try glamor.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #2 from Harald Judt <[email protected]> ---
No, it doesn't work with glamor either. Besides, I'd like to use EXA because of xv support.

Actually, I notice one difference after executing
xrandr --fb 1920x2400 --output HDMI-0 --mode 1920x1200 --scale-from 1920x2400

The vertical panel seems to stretch/extend to the new vertical size (2400). However, the intended scaling doesn't get applied.

xrandr --verbose before and after this command shows no differences.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #3 from Harald Judt <[email protected]> ---
Created attachment 102098
--> https://bugs.freedesktop.org/attachment.cgi?id=102098&action=edit
xrandr-verbose-glamor

xrandr --verbose output after applying above xrandr command

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #4 from Alex Deucher <[email protected]> --- (In reply to comment #2)

Quoted 2 lines

No, it doesn't work with glamor either. Besides, I'd like to use EXA because of xv support.

glamor supports Xv as well.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #5 from Harald Judt <[email protected]> ---
Maybe I forgot to compile in support for xv then. One way or the other, scaling doesn't work.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #6 from Sebastian Wick <[email protected]> --- I'm running into the same problem. The transform matrix doesn't seem to get updated at all.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

Michel D�nzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Michel D�nzer <[email protected]> --- commit 9483a3d777919b224f70c3b4d01e4b320a57db31

Author: Michel D�nzer <[email protected]>
Date:   Fri Jan 15 16:48:46 2016 +0900

Fix RandR CRTC transforms

Currently, Xorg will only transform the cursor as of the first time the cursor image changes after a transform is set.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #8 from Harald Judt <[email protected]> ---
Thanks for fixing it. Unfortunately, it comes too bit late, and I can no longer test this because my old graphics card went to the gpu nirvana :-(

That said, hopefully it helps Sebastian and other users.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

--- Comment #9 from Sebastian Wick <[email protected]> --- It's working. Thanks, Michel!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 80678] xrandr scaling / transform does not work with radeon

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=80678

Michel D�nzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #10 from Michel D�nzer <[email protected]> --- *** Bug 31799 has been marked as a duplicate of this bug. ***

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel