projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
641019d
)
drm/vc4: Define missing PITCH0_SINK_PIX field
author
Eric Anholt
<eric@anholt.net>
Fri, 3 Aug 2018 09:22:28 +0000
(11:22 +0200)
committer
Boris Brezillon
<boris.brezillon@bootlin.com>
Wed, 24 Oct 2018 15:58:08 +0000
(17:58 +0200)
This is needed to support X/Y negative placement of planes using
T-format buffers.
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180803092231.26446-2-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_regs.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_regs.h
b/drivers/gpu/drm/vc4/vc4_regs.h
index ccbd6b377ffe642084319de47bf8f544d86caf99..931088014272438e2a15293543c0eb2dcbbef08f 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_regs.h
+++ b/
drivers/gpu/drm/vc4/vc4_regs.h
@@
-1037,6
+1037,10
@@
enum hvs_pixel_format {
#define SCALER_TILE_HEIGHT_MASK VC4_MASK(15, 0)
#define SCALER_TILE_HEIGHT_SHIFT 0
+/* Common PITCH0 fields */
+#define SCALER_PITCH0_SINK_PIX_MASK VC4_MASK(31, 26)
+#define SCALER_PITCH0_SINK_PIX_SHIFT 26
+
/* PITCH0 fields for T-tiled. */
#define SCALER_PITCH0_TILE_WIDTH_L_MASK VC4_MASK(22, 16)
#define SCALER_PITCH0_TILE_WIDTH_L_SHIFT 16