diff options
author | Nicolai Hähnle <[email protected]> | 2017-06-28 14:47:32 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-08-02 09:50:57 +0200 |
commit | bc7f41e11d325280db12e7b9444501357bc13922 (patch) | |
tree | 418517dd1010fd545e4059610b2a63541f823dd5 /src/gallium/targets | |
parent | 781375ac6f4025d8af729fc3886ea9995f184667 (diff) |
gallium: add pipe_screen_config to screen_create functions
This allows a more generic mechanism for passing user configurations
into drivers by accessing the dri options directly.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/targets')
-rw-r--r-- | src/gallium/targets/d3dadapter9/drm.c | 4 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_i915.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_msm.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_nouveau.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_r300.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_r600.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_radeonsi.c | 2 | ||||
-rw-r--r-- | src/gallium/targets/pipe-loader/pipe_vmwgfx.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/gallium/targets/d3dadapter9/drm.c b/src/gallium/targets/d3dadapter9/drm.c index c0ed97a6fb5..e6e71448a28 100644 --- a/src/gallium/targets/d3dadapter9/drm.c +++ b/src/gallium/targets/d3dadapter9/drm.c @@ -229,7 +229,7 @@ drm_create_adapter( int fd, return D3DERR_DRIVERINTERNALERROR; } - ctx->base.hal = pipe_loader_create_screen(ctx->dev, 0); + ctx->base.hal = pipe_loader_create_screen(ctx->dev, NULL); if (!ctx->base.hal) { ERR("Unable to load requested driver.\n"); drm_destroy(&ctx->base); @@ -312,7 +312,7 @@ drm_create_adapter( int fd, /* wrap it to create a software screen that can share resources */ if (pipe_loader_sw_probe_wrapped(&ctx->swdev, ctx->base.hal)) - ctx->base.ref = pipe_loader_create_screen(ctx->swdev, 0); + ctx->base.ref = pipe_loader_create_screen(ctx->swdev, NULL); if (!ctx->base.ref) { ERR("Couldn't wrap drm screen to swrast screen. Software devices " diff --git a/src/gallium/targets/pipe-loader/pipe_i915.c b/src/gallium/targets/pipe-loader/pipe_i915.c index 43061b06d66..8524a1dc58f 100644 --- a/src/gallium/targets/pipe-loader/pipe_i915.c +++ b/src/gallium/targets/pipe-loader/pipe_i915.c @@ -5,7 +5,7 @@ #include "i915/i915_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct i915_winsys *iws; struct pipe_screen *screen; diff --git a/src/gallium/targets/pipe-loader/pipe_msm.c b/src/gallium/targets/pipe-loader/pipe_msm.c index 180e0f93511..886fbdfc7e3 100644 --- a/src/gallium/targets/pipe-loader/pipe_msm.c +++ b/src/gallium/targets/pipe-loader/pipe_msm.c @@ -4,7 +4,7 @@ #include "freedreno/drm/freedreno_drm_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct pipe_screen *screen; diff --git a/src/gallium/targets/pipe-loader/pipe_nouveau.c b/src/gallium/targets/pipe-loader/pipe_nouveau.c index de61f44ce2c..d95aeda529b 100644 --- a/src/gallium/targets/pipe-loader/pipe_nouveau.c +++ b/src/gallium/targets/pipe-loader/pipe_nouveau.c @@ -4,7 +4,7 @@ #include "nouveau/drm/nouveau_drm_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct pipe_screen *screen; diff --git a/src/gallium/targets/pipe-loader/pipe_r300.c b/src/gallium/targets/pipe-loader/pipe_r300.c index da72859f019..0dcc0191dfb 100644 --- a/src/gallium/targets/pipe-loader/pipe_r300.c +++ b/src/gallium/targets/pipe-loader/pipe_r300.c @@ -5,7 +5,7 @@ #include "r300/r300_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct radeon_winsys *sws; diff --git a/src/gallium/targets/pipe-loader/pipe_r600.c b/src/gallium/targets/pipe-loader/pipe_r600.c index dfe130a2fc2..0eedde76bef 100644 --- a/src/gallium/targets/pipe-loader/pipe_r600.c +++ b/src/gallium/targets/pipe-loader/pipe_r600.c @@ -5,7 +5,7 @@ #include "r600/r600_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct radeon_winsys *rw; diff --git a/src/gallium/targets/pipe-loader/pipe_radeonsi.c b/src/gallium/targets/pipe-loader/pipe_radeonsi.c index 1bbd97ff802..598baf58da3 100644 --- a/src/gallium/targets/pipe-loader/pipe_radeonsi.c +++ b/src/gallium/targets/pipe-loader/pipe_radeonsi.c @@ -6,7 +6,7 @@ #include "radeonsi/si_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct radeon_winsys *rw; diff --git a/src/gallium/targets/pipe-loader/pipe_vmwgfx.c b/src/gallium/targets/pipe-loader/pipe_vmwgfx.c index 63208318880..68bf92ce82e 100644 --- a/src/gallium/targets/pipe-loader/pipe_vmwgfx.c +++ b/src/gallium/targets/pipe-loader/pipe_vmwgfx.c @@ -5,7 +5,7 @@ #include "svga/svga_public.h" static struct pipe_screen * -create_screen(int fd, unsigned flags) +create_screen(int fd, const struct pipe_screen_config *config) { struct svga_winsys_screen *sws; struct pipe_screen *screen; |