virglrenderer: Add VIRGL_RES_BIND_SHARED bind flag.

Allow external users to intercept resource creation based on
shared bind flag.

Signed-off-by: David Riley <davidriley@chromium.org>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
macos/master
David Riley 6 years ago committed by Gurchetan Singh
parent d1500bc47a
commit 9189e19676
  1. 1
      src/virgl_hw.h
  2. 1
      src/virglrenderer.h

@ -271,6 +271,7 @@ enum virgl_formats {
* are only read by the host.
*/
#define VIRGL_BIND_STAGING (1 << 19)
#define VIRGL_BIND_SHARED (1 << 20)
struct virgl_caps_bool_set1 {
unsigned indep_blend_enable:1;

@ -96,6 +96,7 @@ VIRGL_EXPORT int virgl_renderer_get_fd_for_texture2(uint32_t tex_id, int *fd, in
#define VIRGL_RES_BIND_CURSOR (1 << 16)
#define VIRGL_RES_BIND_CUSTOM (1 << 17)
#define VIRGL_RES_BIND_SCANOUT (1 << 18)
#define VIRGL_RES_BIND_SHARED (1 << 20)
struct virgl_renderer_resource_create_args {
uint32_t handle;

Loading…
Cancel
Save