UPSTREAM: frontend/va: Setting the size of VADRMPRIMESurfaceDescriptor

Issue: objects[i].size is returned as '0' for all

Root cause: The value of objects.size is hard coded to '0' in
vlVaExportSurfaceHandle()

Fix: Assigning the value by multiplying height and width of the surface

BUG=b:200680176
TEST=vaapi_unittest

Signed-off-by: Krunal Patel <krunalkumarmukeshkumar.patel@amd.corp-partner.google.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14313>
(cherry picked from commit 13b79266e47ebd0e36b0c01531c0876c39841b7e)
Change-Id: I77a1fbe3e180fd90063154bb69912edcfd8c009b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/mesa/+/3393237
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Miguel Casas <mcasas@google.com>
1 file changed