grate-driver / xf86-video-opentegra

X.Org video driver for NVIDIA Tegra
Other
12 stars 9 forks source link

Xorg rotation crash fix #28

Closed digetx closed 6 years ago

digetx commented 6 years ago

Fixes https://github.com/grate-driver/xf86-video-opentegra/issues/27

kusma commented 6 years ago

I thought our hardware had the ability to scan out rotated buffers?

digetx commented 6 years ago

At least Tegra20 doesn't have that ability. Maybe we could accelerate "rotation" blits using gr2d?

kusma commented 6 years ago

Right. Section 31.2.3 ("Display Transformation") of the TRM says

The Display is responsible for incrementing (and/or) decrementing x-direction scanning, and incrementing (and/or) decrementing y-direction scanning. By itself, the Display is not capable of doing the line scanning in the y-direction, which is needed for 90-degree or 270-degree display rotation.

So yeah, GR2Ds G2SB_G2CONTROLMAIN_0 XYTDW-bit seems like our best option for hw acceleration here.