rutabaga_gfx: gfxstream: Update gfxstream_backend_init()

... to add the `gfxstream_callbacks` param which was added in
aosp/1927497. This param is only used in specific forks of Crosvm
but is present in the common Gfxstream project.

BUG=b:214097104
TEST=launch_cvd --gpu_mode=gfxstream

Change-Id: I3870692dd7ea55653c9761e787ff747d20df44d4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3381902
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alistair Delva <adelva@google.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Andrew Walbran <qwandor@google.com>
Commit-Queue: Jason Macnak <natsu@google.com>
This commit is contained in:
Jason Macnak 2022-01-11 16:35:36 -08:00 committed by Commit Bot
parent 339b7b6801
commit 9b812ce96f

View file

@ -46,6 +46,7 @@ extern "C" {
renderer_cookie: *mut c_void,
renderer_flags: i32,
renderer_callbacks: *mut GfxstreamRendererCallbacks,
gfxstream_callbacks: *mut c_void,
);
// virtio-gpu-3d ioctl functions (begin)
@ -221,6 +222,7 @@ impl Gfxstream {
cookie as *mut c_void,
gfxstream_flags.into(),
transmute(GFXSTREAM_RENDERER_CALLBACKS),
null_mut(),
);
}