mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
radeon/uvd: fix the assertion check for YUYV format
Fixes:7319ff87("radeon/uvd: add YUYV format support for target buffer")
Signed-off-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
ad160c2273
commit
e1e3c0384b
1 changed files with 5 additions and 3 deletions
|
|
@ -1588,9 +1588,11 @@ void ruvd_set_dt_surfaces(struct ruvd_msg *msg, struct radeon_surf *luma,
|
|||
msg->body.decode.dt_chroma_bottom_offset = msg->body.decode.dt_chroma_top_offset;
|
||||
}
|
||||
|
||||
assert(luma->u.legacy.bankw == chroma->u.legacy.bankw);
|
||||
assert(luma->u.legacy.bankh == chroma->u.legacy.bankh);
|
||||
assert(luma->u.legacy.mtilea == chroma->u.legacy.mtilea);
|
||||
if (chroma) {
|
||||
assert(luma->u.legacy.bankw == chroma->u.legacy.bankw);
|
||||
assert(luma->u.legacy.bankh == chroma->u.legacy.bankh);
|
||||
assert(luma->u.legacy.mtilea == chroma->u.legacy.mtilea);
|
||||
}
|
||||
|
||||
msg->body.decode.dt_surf_tile_config |= RUVD_BANK_WIDTH(bank_wh(luma->u.legacy.bankw));
|
||||
msg->body.decode.dt_surf_tile_config |= RUVD_BANK_HEIGHT(bank_wh(luma->u.legacy.bankh));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue