virgl: Add VIRGL_FORMAT_R8G8_SRGB

Mesa has VIRGL_FORMAT_R8G8_SRGB since commit
e33cb6a763532279fc6fa6c3c1583ce3dd530827. Define it also in
virglrenderer for the header compatibility with Mesa and
to avoid acceidental collision of the definition.

Signed-off-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/738>
macos/master
Akihiko Odaki 3 years ago committed by Marge Bot
parent f3428dc71e
commit 29f9245d2e
  1. 1
      src/virgl_hw.h

@ -391,6 +391,7 @@ enum virgl_formats {
VIRGL_FORMAT_A4B4G4R4_UNORM = 311, VIRGL_FORMAT_A4B4G4R4_UNORM = 311,
VIRGL_FORMAT_R8_SRGB = 312, VIRGL_FORMAT_R8_SRGB = 312,
VIRGL_FORMAT_R8G8_SRGB = 313,
VIRGL_FORMAT_MAX /* = PIPE_FORMAT_COUNT */, VIRGL_FORMAT_MAX /* = PIPE_FORMAT_COUNT */,
/* Below formats must not be used in the guest. */ /* Below formats must not be used in the guest. */

Loading…
Cancel
Save