Revert "UPSTREAM: frontend/va: remove some unnecessary code"

This reverts commit f20f73e7a59d5e6f2ca5577498e11ffff2967396.

Reason for revert: GPU hang on Grunt
https://issuetracker.google.com/264931350 [100% grunt, maybe zork] GPU hang in h264 hw encode tests since 15287.0.0

Original change's description:
> UPSTREAM: frontend/va: remove some unnecessary code
>
> clean up some code related to h264 encoding.
>
> BUG=b:255466367
> TEST=tast run <device ip> video.EncodeAccel.h264_270p
>
> Change-Id: I1cf4f6664a8c6318383a7c6dd7e4b9e635071703
> 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>
> (cherry picked from commit 72fffa62d574a43aedd2b9c5e772e18d1240589c)
> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/4111670
> Tested-by: Sajeesh Sidharthan <sajeesh.sidharthan@amd.corp-partner.google.com>
> Reviewed-by: Sean Paul <sean@poorly.run>
> Reviewed-by: Suresh Guttula <suresh.guttula@amd.corp-partner.google.com>
> Reviewed-by: Jao-ke Chin-Lee <jchinlee@google.com>
> Commit-Queue: Sajeesh Sidharthan <sajeesh.sidharthan@amd.corp-partner.google.com>

Bug: b:255466367
Change-Id: I0b838e2e9c9aeb7290ec4ef56f514a710c276991
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/4151775
Commit-Queue: Ilja Friedel <ihf@chromium.org>
Reviewed-by: Ilja Friedel <ihf@chromium.org>
Tested-by: Ilja Friedel <ihf@chromium.org>
2 files changed