Skip to content

drm/vc4: tiled scanout - #2074

Merged
popcornmix merged 3 commits into
raspberrypi:rpi-4.9.yfrom
anholt:rpi-4.9.y-tiling
Jun 17, 2017
Merged

popcornmix merged 3 commits into
raspberrypi:rpi-4.9.yfrom
anholt:rpi-4.9.y-tiling

Conversation

@anholt

@anholt anholt commented Jun 15, 2017

Copy link
Copy Markdown
Contributor

This merge brings in the tiling support from drm-misc-next, and the corresponding change for fkms. Note that behavior won't change until corresponding changes are added to Mesa.

anholt added 3 commits June 15, 2017 16:33
The T tiling format is what V3D uses for textures, with no raster
support at all until later revisions of the hardware (and always at a
large 3D performance penalty).  If we can't scan out V3D's format,
then we often need to do a relayout at some stage of the pipeline,
either right before texturing from the scanout buffer (common in X11
without a compositor) or between a tiled screen buffer right before
scanout (an option I've considered in trying to resolve this
inconsistency, but which means needing to use the dirty fb ioctl and
having some update policy).

T-format scanout lets us avoid either of those shadow copies, for a
massive, obvious performance improvement to X11 window dragging
without a compositor.  Unfortunately, enabling a compositor to work
around the discrepancy has turned out to be too costly in memory
consumption for the Raspbian distribution.

Because the HVS operates a scanline at a time, compositing from T does
increase the memory bandwidth cost of scanout.  On my 1920x1080@32bpp
display on a RPi3, we go from about 15% of system memory bandwidth
with linear to about 20% with tiled.  However, for X11 this still ends
up being a huge performance win in active usage.

This patch doesn't yet handle src_x/src_y offsetting within the tiled
buffer.  However, we fail to do so for untiled buffers already.

Signed-off-by: Eric Anholt <eric@anholt.net>
This allows mesa to set the tiling format for a BO and have that
tiling format be respected by mesa on the other side of an
import/export (and by vc4 scanout in the kernel), without defining a
protocol to pass the tiling through userspace.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Eric Anholt <eric@anholt.net>
@popcornmix
popcornmix merged commit 11752d7 into raspberrypi:rpi-4.9.y Jun 17, 2017
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 17, 2017
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jun 17, 2017
@anholt
anholt deleted the rpi-4.9.y-tiling branch June 21, 2017 16:20
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Jun 22, 2017
See: raspberrypi/linux#2077

kernel: drm/vc4: tiled scanout
See: raspberrypi/linux#2074

kernel: bcm2708: Drop CMA alignment from FKMS mode as well
See: raspberrypi/linux#2079

kernel: USB: serial: ch341: change initial line-control settings
See: raspberrypi/linux#2075

kernel: serial: 8250: Fix THRE flag usage for CAP_MINI
See: raspberrypi/linux#1855
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this pull request Jun 22, 2017
See: raspberrypi/linux#2077

kernel: drm/vc4: tiled scanout
See: raspberrypi/linux#2074

kernel: bcm2708: Drop CMA alignment from FKMS mode as well
See: raspberrypi/linux#2079

kernel: USB: serial: ch341: change initial line-control settings
See: raspberrypi/linux#2075

kernel: serial: 8250: Fix THRE flag usage for CAP_MINI
See: raspberrypi/linux#1855
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants