gfxstream: add virgl_hw.h in VirtGpu.h header

Otherwise, errors such as:

GrallocEmulated.cpp:101:29: error: use of undeclared identifier 'VIRGL_FORMAT_R8G8B8A8_UNORM'
  101 |              .virglFormat = VIRGL_FORMAT_R8G8B8A8_UNORM,
      |                             ^
GrallocEmulated.cpp:117:29: error: use of undeclared identifier 'VIRGL_FORMAT_B8G8R8A8_UNORM'
  117 |              .virglFormat = VIRGL_FORMAT_B8G8R8A8_UNORM,

happen in Android builds.  Add it to VirtGpu.h to fix this.

Reviewed-by: Marcin Radomski <dextero@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35416>
This commit is contained in:
Gurchetan Singh 2025-06-09 10:20:58 -07:00 committed by Marge Bot
parent 778230341b
commit 0d3e8fa536

View file

@ -9,6 +9,7 @@
#include <memory>
#include "virtio/virtio-gpu/virtgpu_gfxstream_protocol.h"
#include "virtio/virtio-gpu/virgl_hw.h"
#define PIPE_BUFFER 0
#define PIPE_TEXTURE_2D 2