Repository navigation
drm/vc4: tiled scanout - #2074
Merged
Merged
Conversation
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
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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.