mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
radeonsi/vcn: Fix maybe uninitialized warning
Backport-to: 25.3
Reviewed-by: Benjamin Cheng <benjamin.cheng@amd.com>
(cherry picked from commit 1884b03a10)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38803>
This commit is contained in:
parent
681e8b7e84
commit
c205817236
2 changed files with 2 additions and 2 deletions
|
|
@ -1624,7 +1624,7 @@
|
|||
"description": "radeonsi/vcn: Fix maybe uninitialized warning",
|
||||
"nominated": true,
|
||||
"nomination_type": 4,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1273,7 +1273,7 @@ static int setup_dpb(struct radeon_encoder *enc, uint32_t num_reconstructed_pict
|
|||
uint32_t aligned_width = align(enc->base.width, rec_alignment);
|
||||
uint32_t aligned_height = align(enc->base.height, rec_alignment);
|
||||
uint32_t pitch = align(aligned_width, enc->alignment);
|
||||
uint32_t luma_size, chroma_size, pre_luma_size, pre_chroma_size, offset;
|
||||
uint32_t luma_size, chroma_size, pre_luma_size = 0, pre_chroma_size = 0, offset;
|
||||
struct radeon_enc_pic *enc_pic = &enc->enc_pic;
|
||||
int i;
|
||||
bool has_b = enc_pic->spec_misc.b_picture_enabled; /* for h264 only */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue