summaryrefslogtreecommitdiffstats
path: root/drivers/dax
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-06-07 17:13:35 -0700
committerEric Anholt <eric@anholt.net>2017-06-15 16:02:45 -0700
commit98830d91da082b0285d35bdf5b5ae98decac7df6 (patch)
tree6d508301468c194fc03bc3f91225fc02670e9d61 /drivers/dax
parentac7c748317f515f426f48e72964c71142506f7a6 (diff)
downloadlinux-stable-98830d91da082b0285d35bdf5b5ae98decac7df6.tar.gz
linux-stable-98830d91da082b0285d35bdf5b5ae98decac7df6.tar.bz2
linux-stable-98830d91da082b0285d35bdf5b5ae98decac7df6.zip
drm/vc4: Add T-format scanout support.
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> Link: http://patchwork.freedesktop.org/patch/msgid/20170608001336.12842-1-eric@anholt.net Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions