diff options
author | Marek Olšák <[email protected]> | 2017-06-21 00:30:21 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-23 19:50:20 +0200 |
commit | 76f379330acc3993f865ea77dfb0b5bcf47b6697 (patch) | |
tree | cd642be3749ad9ad1be418acbb057836b4b22902 /src/gallium/auxiliary/target-helpers | |
parent | 516488bb51759e581a7aa2858278e6b267c1f52f (diff) |
gallium: allow passing 'unsigned flags' to create_screen()
for drirc options
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/target-helpers')
-rw-r--r-- | src/gallium/auxiliary/target-helpers/drm_helper.h | 48 | ||||
-rw-r--r-- | src/gallium/auxiliary/target-helpers/drm_helper_public.h | 26 |
2 files changed, 37 insertions, 37 deletions
diff --git a/src/gallium/auxiliary/target-helpers/drm_helper.h b/src/gallium/auxiliary/target-helpers/drm_helper.h index 1b071a6d36b..65231cf3eba 100644 --- a/src/gallium/auxiliary/target-helpers/drm_helper.h +++ b/src/gallium/auxiliary/target-helpers/drm_helper.h @@ -10,7 +10,7 @@ #include "i915/i915_public.h" struct pipe_screen * -pipe_i915_create_screen(int fd) +pipe_i915_create_screen(int fd, unsigned flags) { struct i915_winsys *iws; struct pipe_screen *screen; @@ -26,7 +26,7 @@ pipe_i915_create_screen(int fd) #else struct pipe_screen * -pipe_i915_create_screen(int fd) +pipe_i915_create_screen(int fd, unsigned flags) { fprintf(stderr, "i915g: driver missing\n"); return NULL; @@ -38,7 +38,7 @@ pipe_i915_create_screen(int fd) #include "nouveau/drm/nouveau_drm_public.h" struct pipe_screen * -pipe_nouveau_create_screen(int fd) +pipe_nouveau_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -49,7 +49,7 @@ pipe_nouveau_create_screen(int fd) #else struct pipe_screen * -pipe_nouveau_create_screen(int fd) +pipe_nouveau_create_screen(int fd, unsigned flags) { fprintf(stderr, "nouveau: driver missing\n"); return NULL; @@ -61,7 +61,7 @@ pipe_nouveau_create_screen(int fd) #include "pl111/drm/pl111_drm_public.h" struct pipe_screen * -pipe_pl111_create_screen(int fd) +pipe_pl111_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -72,7 +72,7 @@ pipe_pl111_create_screen(int fd) #else struct pipe_screen * -pipe_pl111_create_screen(int fd) +pipe_pl111_create_screen(int fd, unsigned flags) { fprintf(stderr, "pl111: driver missing\n"); return NULL; @@ -86,7 +86,7 @@ pipe_pl111_create_screen(int fd) #include "r300/r300_public.h" struct pipe_screen * -pipe_r300_create_screen(int fd) +pipe_r300_create_screen(int fd, unsigned flags) { struct radeon_winsys *rw; @@ -97,7 +97,7 @@ pipe_r300_create_screen(int fd) #else struct pipe_screen * -pipe_r300_create_screen(int fd) +pipe_r300_create_screen(int fd, unsigned flags) { fprintf(stderr, "r300: driver missing\n"); return NULL; @@ -111,7 +111,7 @@ pipe_r300_create_screen(int fd) #include "r600/r600_public.h" struct pipe_screen * -pipe_r600_create_screen(int fd) +pipe_r600_create_screen(int fd, unsigned flags) { struct radeon_winsys *rw; @@ -122,7 +122,7 @@ pipe_r600_create_screen(int fd) #else struct pipe_screen * -pipe_r600_create_screen(int fd) +pipe_r600_create_screen(int fd, unsigned flags) { fprintf(stderr, "r600: driver missing\n"); return NULL; @@ -137,7 +137,7 @@ pipe_r600_create_screen(int fd) #include "radeonsi/si_public.h" struct pipe_screen * -pipe_radeonsi_create_screen(int fd) +pipe_radeonsi_create_screen(int fd, unsigned flags) { struct radeon_winsys *rw; @@ -153,7 +153,7 @@ pipe_radeonsi_create_screen(int fd) #else struct pipe_screen * -pipe_radeonsi_create_screen(int fd) +pipe_radeonsi_create_screen(int fd, unsigned flags) { fprintf(stderr, "radeonsi: driver missing\n"); return NULL; @@ -166,7 +166,7 @@ pipe_radeonsi_create_screen(int fd) #include "svga/svga_public.h" struct pipe_screen * -pipe_vmwgfx_create_screen(int fd) +pipe_vmwgfx_create_screen(int fd, unsigned flags) { struct svga_winsys_screen *sws; struct pipe_screen *screen; @@ -182,7 +182,7 @@ pipe_vmwgfx_create_screen(int fd) #else struct pipe_screen * -pipe_vmwgfx_create_screen(int fd) +pipe_vmwgfx_create_screen(int fd, unsigned flags) { fprintf(stderr, "svga: driver missing\n"); return NULL; @@ -194,7 +194,7 @@ pipe_vmwgfx_create_screen(int fd) #include "freedreno/drm/freedreno_drm_public.h" struct pipe_screen * -pipe_freedreno_create_screen(int fd) +pipe_freedreno_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -205,7 +205,7 @@ pipe_freedreno_create_screen(int fd) #else struct pipe_screen * -pipe_freedreno_create_screen(int fd) +pipe_freedreno_create_screen(int fd, unsigned flags) { fprintf(stderr, "freedreno: driver missing\n"); return NULL; @@ -218,7 +218,7 @@ pipe_freedreno_create_screen(int fd) #include "virgl/virgl_public.h" struct pipe_screen * -pipe_virgl_create_screen(int fd) +pipe_virgl_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -229,7 +229,7 @@ pipe_virgl_create_screen(int fd) #else struct pipe_screen * -pipe_virgl_create_screen(int fd) +pipe_virgl_create_screen(int fd, unsigned flags) { fprintf(stderr, "virgl: driver missing\n"); return NULL; @@ -241,7 +241,7 @@ pipe_virgl_create_screen(int fd) #include "vc4/drm/vc4_drm_public.h" struct pipe_screen * -pipe_vc4_create_screen(int fd) +pipe_vc4_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -252,7 +252,7 @@ pipe_vc4_create_screen(int fd) #else struct pipe_screen * -pipe_vc4_create_screen(int fd) +pipe_vc4_create_screen(int fd, unsigned flags) { fprintf(stderr, "vc4: driver missing\n"); return NULL; @@ -264,7 +264,7 @@ pipe_vc4_create_screen(int fd) #include "etnaviv/drm/etnaviv_drm_public.h" struct pipe_screen * -pipe_etna_create_screen(int fd) +pipe_etna_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -275,7 +275,7 @@ pipe_etna_create_screen(int fd) #else struct pipe_screen * -pipe_etna_create_screen(int fd) +pipe_etna_create_screen(int fd, unsigned flags) { fprintf(stderr, "etnaviv: driver missing\n"); return NULL; @@ -287,7 +287,7 @@ pipe_etna_create_screen(int fd) #include "imx/drm/imx_drm_public.h" struct pipe_screen * -pipe_imx_drm_create_screen(int fd) +pipe_imx_drm_create_screen(int fd, unsigned flags) { struct pipe_screen *screen; @@ -298,7 +298,7 @@ pipe_imx_drm_create_screen(int fd) #else struct pipe_screen * -pipe_imx_drm_create_screen(int fd) +pipe_imx_drm_create_screen(int fd, unsigned flags) { fprintf(stderr, "imx-drm: driver missing\n"); return NULL; diff --git a/src/gallium/auxiliary/target-helpers/drm_helper_public.h b/src/gallium/auxiliary/target-helpers/drm_helper_public.h index 5abb5fc7b82..d4adc880df0 100644 --- a/src/gallium/auxiliary/target-helpers/drm_helper_public.h +++ b/src/gallium/auxiliary/target-helpers/drm_helper_public.h @@ -5,42 +5,42 @@ struct pipe_screen; struct pipe_screen * -pipe_i915_create_screen(int fd); +pipe_i915_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_ilo_create_screen(int fd); +pipe_ilo_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_nouveau_create_screen(int fd); +pipe_nouveau_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_r300_create_screen(int fd); +pipe_r300_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_r600_create_screen(int fd); +pipe_r600_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_radeonsi_create_screen(int fd); +pipe_radeonsi_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_vmwgfx_create_screen(int fd); +pipe_vmwgfx_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_freedreno_create_screen(int fd); +pipe_freedreno_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_virgl_create_screen(int fd); +pipe_virgl_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_vc4_create_screen(int fd); +pipe_vc4_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_pl111_create_screen(int fd); +pipe_pl111_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_etna_create_screen(int fd); +pipe_etna_create_screen(int fd, unsigned flags); struct pipe_screen * -pipe_imx_drm_create_screen(int fd); +pipe_imx_drm_create_screen(int fd, unsigned flags); #endif /* _DRM_HELPER_PUBLIC_H */ |