mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-06 03:50:26 +01:00
radeonsi/vcn: Clean up decode flags
Always OR the flags and replace numeric value with a define. Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39450>
This commit is contained in:
parent
c10ebb0fda
commit
ce25865e8f
1 changed files with 2 additions and 2 deletions
|
|
@ -1405,7 +1405,7 @@ static unsigned rvcn_dec_dynamic_dpb_t2_message(struct radeon_decoder *dec, rvcn
|
|||
|
||||
dynamic_dpb_t2->dpbCurrLo = addr;
|
||||
dynamic_dpb_t2->dpbCurrHi = addr >> 32;
|
||||
decode->decode_flags = 1;
|
||||
decode->decode_flags |= RDECODE_FLAGS_USE_DYNAMIC_DPB_MASK;
|
||||
dynamic_dpb_t2->dpbConfigFlags = 0;
|
||||
|
||||
return 0;
|
||||
|
|
@ -1565,7 +1565,7 @@ static struct pb_buffer_lean *rvcn_dec_message_decode(struct radeon_decoder *dec
|
|||
decode->height_in_samples = dec->base.height;
|
||||
|
||||
if (dec->dpb_type == DPB_DYNAMIC_TIER_3)
|
||||
decode->decode_flags = RDECODE_FLAGS_UNIFIED_DT_MASK;
|
||||
decode->decode_flags |= RDECODE_FLAGS_UNIFIED_DT_MASK;
|
||||
|
||||
decode->bsd_size = align(dec->bs_size, 128);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue