radeonsi/vcn: Remove unnecessary type conversion
authorFeng Jiang <jiangfeng@kylinos.cn>
Wed, 24 May 2023 07:47:00 +0000 (15:47 +0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 10 Jul 2023 21:31:52 +0000 (21:31 +0000)
The types of both 'encrypted' and 'picture->protected_playback'
are bool, so there is no need. I guess this is a typo.

Signed-off-by: Feng Jiang <jiangfeng@kylinos.cn>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23202>

src/gallium/drivers/radeonsi/radeon_vcn_dec.c

index ee08195..b879ed6 100644 (file)
@@ -1905,7 +1905,7 @@ static struct pb_buffer *rvcn_dec_message_decode(struct radeon_decoder *dec,
                                                  struct pipe_picture_desc *picture)
 {
    DECRYPT_PARAMETERS *decrypt = (DECRYPT_PARAMETERS *)picture->decrypt_key;
-   bool encrypted = (DECRYPT_PARAMETERS *)picture->protected_playback;
+   bool encrypted = picture->protected_playback;
    struct si_texture *luma;
    struct si_texture *chroma;
    struct pipe_video_buffer *out_surf = target;