mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
gfxstream: guest: plumb the descriptor everywhere
This change does two things:
- Makes sure the descriptor is passed through to
EmulatedGralloc, where it makes a difference
- Makes sure descriptor is always used when creating
a VirtioGpuPipeStream. The VirtioGpuPipeStream
API where the descriptor is not passed in has
been nuked.
GLES, VK, Gralloc, and RenderControl can all pass in
a descriptor via their APIs with this change.
Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
parent
132ed7b81c
commit
e64534bd64
1 changed files with 7 additions and 1 deletions
|
|
@ -576,7 +576,13 @@ int EmulatedGralloc::getId(const AHardwareBuffer* ahb, uint64_t* id) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
Gralloc* createPlatformGralloc(int /*deviceFd*/) {
|
||||
Gralloc* createPlatformGralloc(int32_t descriptor) {
|
||||
auto device = VirtGpuDevice::getInstance(kCapsetNone, descriptor);
|
||||
if (!device) {
|
||||
ALOGE("no virtio gpu device.");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return new EmulatedGralloc();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue