Skip to content

avd improvements - #581

Merged
jannau merged 14 commits into
AsahiLinux:asahi-wipfrom
sofus13:avd-wip
Aug 29, 2026
Merged

avd improvements#581
jannau merged 14 commits into
AsahiLinux:asahi-wipfrom
sofus13:avd-wip

Conversation

@sofus13

@sofus13 sofus13 commented Aug 27, 2026

Copy link
Copy Markdown

No description provided.

sofus13 added 11 commits August 27, 2026 11:39
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
I feel fairly confident they dont do anything, would be fun to find out
why apple uses them

Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
turns out AVD works with interchange/compressed buffers internally and
only decompressed if we ask it to

Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Names are still wrong tho, mostly seg and the other

Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>
Signed-off-by: sofus <sofus.c@icloud.com>

@jannau jannau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly some cleanup suggestions for upstream, I'll merge this. thanks

title: Apple AVD (Apple Video Decoder)

description:
AVD is a video decode block present on all apple silicon devices.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for upstream: the description should be expanded

- apple,t6000-avd
- apple,t8112-avd
- apple,t6020-avd
- apple,t8122-avd

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for upstream: please sort alphabetically. We tried sorting be release but it doesn't provide much value and will cause inconsistently ordered lists, needless discussions on upstream submission or both.


reg:
items:
- description: cm3 code

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth writing Cortex-M3 out


/* not sure what this is? mv data or something? */
#define AVD_AV1_REF_BUF_SIZE 0xf000
#define AVD_CDFS_SIZE (sizeof(struct avd_av1_cdfs))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the outer parentheses aren't needed. () has the highest operator precedence in C

@jannau
jannau merged commit ccce11a into AsahiLinux:asahi-wip Aug 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants