asahi: Identify IOGPU_ATTACHMENT::size

Oops.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14898>
This commit is contained in:
Alyssa Rosenzweig 2022-01-18 19:58:21 -05:00
parent 945a1e0b8c
commit daab41b80b
2 changed files with 2 additions and 6 deletions

View file

@ -529,9 +529,7 @@
<field name="Unk 0" start="0:0" size="16" default="0x100" type="hex"/>
<field name="Address" start="0:16" size="48" type="address"/>
<field name="Type" start="2:16" size="16" type="IOGPU Attachment Type"/>
<field name="Unk 1" start="3:0" size="32" type="hex"/>
<field name="Unk 2" start="4:0" size="3" type="hex"/>
<field name="Bytes per pixel" start="4:3" size="5" type="uint"/>
<field name="Size" start="3:16" size="32" type="uint"/>
<field name="Unk 3" start="4:16" size="4" type="hex" default="0xC"/>
<!-- Percent of total attachment space used for this attachment, expressed
in a decimal percentage [0, 100] <field name="Percent" start="5:16" -->

View file

@ -141,9 +141,7 @@ demo_cmdbuf(uint64_t *buf, size_t size,
agx_pack((map + (offset_attachments / 4) + 4), IOGPU_ATTACHMENT, cfg) {
cfg.address = rt0;
cfg.type = AGX_IOGPU_ATTACHMENT_TYPE_COLOUR;
cfg.unk_1 = 0x80000000;
cfg.unk_2 = 0x5;
cfg.bytes_per_pixel = 4;
cfg.size = 800*600*4;
cfg.percent = 100;
}