mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-26 08:20:18 +00:00
jpeg: Figured out how to activate tiling
Signed-off-by: R <rqou@berkeley.edu>
This commit is contained in:
parent
b2a0352a8f
commit
d28ab8cc81
2 changed files with 10 additions and 9 deletions
|
@ -406,7 +406,7 @@ def set_default_regs(param1=0):
|
||||||
jpeg.CHROMA_DOUBLE_H.val = 0
|
jpeg.CHROMA_DOUBLE_H.val = 0
|
||||||
jpeg.CHROMA_QUADRUPLE_H.val = 0
|
jpeg.CHROMA_QUADRUPLE_H.val = 0
|
||||||
jpeg.CHROMA_DOUBLE_V.val = 0
|
jpeg.CHROMA_DOUBLE_V.val = 0
|
||||||
jpeg.REG_0x15c.val = 0
|
jpeg.PLANAR_CHROMA_HALVING.val = 0
|
||||||
jpeg.PX_USE_PLANE1.val = 0
|
jpeg.PX_USE_PLANE1.val = 0
|
||||||
jpeg.PX_TILES_W.val = 1
|
jpeg.PX_TILES_W.val = 1
|
||||||
jpeg.PX_TILES_H.val = 1
|
jpeg.PX_TILES_H.val = 1
|
||||||
|
@ -441,9 +441,9 @@ def set_default_regs(param1=0):
|
||||||
jpeg.REG_0x118.val = 0
|
jpeg.REG_0x118.val = 0
|
||||||
jpeg.REG_0x11c.val = 0
|
jpeg.REG_0x11c.val = 0
|
||||||
jpeg.REG_0x120.val = 0
|
jpeg.REG_0x120.val = 0
|
||||||
jpeg.REG_0x124.val = 0
|
jpeg.TILING_ENABLE.val = 0
|
||||||
jpeg.REG_0x128.val = 0
|
jpeg.TILING_PLANE0.val = 0
|
||||||
jpeg.REG_0x12c.val = 0
|
jpeg.TILING_PLANE1.val = 0
|
||||||
jpeg.DECODE_MACROBLOCKS_W.val = 0
|
jpeg.DECODE_MACROBLOCKS_W.val = 0
|
||||||
jpeg.DECODE_MACROBLOCKS_H.val = 0
|
jpeg.DECODE_MACROBLOCKS_H.val = 0
|
||||||
jpeg.SCALE_FACTOR.val = 0
|
jpeg.SCALE_FACTOR.val = 0
|
||||||
|
|
|
@ -177,10 +177,11 @@ class JPEGRegs(RegMap):
|
||||||
REG_0x11c = 0x11c, Register32
|
REG_0x11c = 0x11c, Register32
|
||||||
|
|
||||||
REG_0x120 = 0x120, Register32
|
REG_0x120 = 0x120, Register32
|
||||||
# driver mentions surface tiling, but this doesn't seem to work???
|
|
||||||
REG_0x124 = 0x124, Register32
|
# details not understood yet
|
||||||
REG_0x128 = 0x128, Register32
|
TILING_ENABLE = 0x124, Register32
|
||||||
REG_0x12c = 0x12c, Register32
|
TILING_PLANE0 = 0x128, Register32
|
||||||
|
TILING_PLANE1 = 0x12c, Register32
|
||||||
|
|
||||||
DECODE_MACROBLOCKS_W = 0x130, Register32
|
DECODE_MACROBLOCKS_W = 0x130, Register32
|
||||||
DECODE_MACROBLOCKS_H = 0x134, Register32
|
DECODE_MACROBLOCKS_H = 0x134, Register32
|
||||||
|
@ -198,7 +199,7 @@ class JPEGRegs(RegMap):
|
||||||
RGBA_ORDER = 0x154, Register32
|
RGBA_ORDER = 0x154, Register32
|
||||||
RGBA_ALPHA = 0x158, Register32
|
RGBA_ALPHA = 0x158, Register32
|
||||||
|
|
||||||
REG_0x15c = 0x15c, Register32
|
PLANAR_CHROMA_HALVING = 0x15c, Register32
|
||||||
|
|
||||||
REG_0x160 = 0x160, Register32
|
REG_0x160 = 0x160, Register32
|
||||||
REG_0x164 = 0x164, Register32
|
REG_0x164 = 0x164, Register32
|
||||||
|
|
Loading…
Reference in a new issue