Skip to content

Commit 795211c

Browse files
committed
m1n1.fw.dcp.ipc: More fields
Signed-off-by: Hector Martin <[email protected]>
1 parent 2f96635 commit 795211c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

proxyclient/m1n1/fw/dcp/ipc.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,8 @@ def methods(cls):
425425

426426
Rect = NamedTuple("rect", "x y w h", Int32ul[4])
427427

428+
ActiveRegion = NamedTuple("rect", "max_x max_y min_w max_w", Int32ul[4])
429+
428430
IOMFBSwapRec = Struct(
429431
"ts1" / Default(Int64ul, 0),
430432
"ts2" / Default(Int64ul, 0),
@@ -444,8 +446,11 @@ def methods(cls):
444446
"dst_rect" / Rect[SWAP_SURFACES],
445447
"swap_enabled" / Hex(Int32ul),
446448
"swap_completed" / Hex(Int32ul),
447-
"unk_10c" / Hex(Default(Int32ul, 0)),
448-
"unk_110" / UnkBytes(0x1b8),
449+
"bg_color" / Hex(Default(Int32ul, 0)),
450+
"unk_110" / UnkBytes(0x30),
451+
"active_region_enable" / Default(Int32ul[SWAP_SURFACES], [0]*SWAP_SURFACES),
452+
"active_regions" / Default(ActiveRegion[SWAP_SURFACES], [(0,0,0,0)] * SWAP_SURFACES),
453+
"unk_190" / UnkBytes(0x138),
449454
"unk_2c8" / Hex(Default(Int32ul, 0)),
450455
"unk_2cc" / UnkBytes(0x14),
451456
"unk_2e0" / Hex(Default(Int32ul, 0)),

0 commit comments

Comments
 (0)