frontends/va: change getEncParamPreset location
authorRuijing Dong <ruijing.dong@amd.com>
Sat, 10 Sep 2022 20:28:19 +0000 (16:28 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 00:16:20 +0000 (00:16 +0000)
commit6646ae257663685646a19b98bb815678a3de8603
tree68c5dff808ea84a813df5d0779959e1e62df46d3
parent72fffa62d574a43aedd2b9c5e772e18d1240589c
frontends/va: change getEncParamPreset location

why:
getEncParamPreset functions overwrite the incoming
messages.

how:
To change a location after the decoder is created,
so that if no incoming message the default ones
will be used otherwise the new messages will
overwrite the default values.

Signed-off-by: Ruijing Dong <ruijing.dong@amd.com>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18534>
src/gallium/frontends/va/picture.c
src/gallium/frontends/va/picture_h264_enc.c
src/gallium/frontends/va/picture_hevc_enc.c
src/gallium/include/pipe/p_video_state.h [changed mode: 0755->0644]