A winsys is already a private object of a driver.
return NULL;
}
- glhd_pipe->base.winsys = NULL;
glhd_pipe->base.screen = _screen;
glhd_pipe->base.priv = pipe->priv; /* expose wrapped data */
glhd_pipe->base.draw = NULL;
return screen;
}
- glhd_screen->base.winsys = NULL;
-
glhd_screen->base.destroy = galahad_screen_destroy;
glhd_screen->base.get_name = galahad_screen_get_name;
glhd_screen->base.get_vendor = galahad_screen_get_vendor;
return NULL;
i915->iws = i915_screen(screen)->iws;
- i915->base.winsys = NULL;
i915->base.screen = screen;
i915->base.priv = priv;
is->iws = iws;
- is->base.winsys = NULL;
-
is->base.destroy = i915_destroy_screen;
is->base.flush_frontbuffer = i915_flush_frontbuffer;
return NULL;
}
- id_pipe->base.winsys = NULL;
id_pipe->base.screen = _screen;
id_pipe->base.priv = pipe->priv; /* expose wrapped data */
id_pipe->base.draw = NULL;
return NULL;
}
- id_screen->base.winsys = NULL;
-
id_screen->base.destroy = identity_screen_destroy;
id_screen->base.get_name = identity_screen_get_name;
id_screen->base.get_vendor = identity_screen_get_vendor;
make_empty_list(&llvmpipe->setup_variants_list);
- llvmpipe->pipe.winsys = screen->winsys;
llvmpipe->pipe.screen = screen;
llvmpipe->pipe.priv = priv;
if (ctx == NULL)
return NULL;
- ctx->winsys = screen->winsys;
ctx->screen = screen;
ctx->priv = priv;
ctx->destroy = noop_destroy_context;
noop_screen->oscreen = oscreen;
screen = &noop_screen->pscreen;
- screen->winsys = oscreen->winsys;
screen->destroy = noop_destroy_screen;
screen->get_name = noop_get_name;
screen->get_vendor = noop_get_vendor;
r300->rws = rws;
r300->screen = r300screen;
- r300->context.winsys = (struct pipe_winsys*)rws;
r300->context.screen = screen;
r300->context.priv = priv;
UTIL_SLAB_SINGLETHREADED);
r300screen->rws = rws;
- r300screen->screen.winsys = (struct pipe_winsys*)rws;
r300screen->screen.destroy = r300_destroy_screen;
r300screen->screen.get_name = r300_get_name;
r300screen->screen.get_vendor = r300_get_vendor;
r600_update_num_contexts(rscreen, 1);
- rctx->context.winsys = rscreen->screen.winsys;
rctx->context.screen = screen;
rctx->context.priv = priv;
rctx->context.destroy = r600_destroy_context;
return NULL;
}
- rscreen->screen.winsys = (struct pipe_winsys*)ws;
rscreen->screen.destroy = r600_destroy_screen;
rscreen->screen.get_name = r600_get_name;
rscreen->screen.get_vendor = r600_get_vendor;
pipe_mutex_init(rb_pipe->list_mutex);
make_empty_list(&rb_pipe->shaders);
- rb_pipe->base.winsys = NULL;
rb_pipe->base.screen = _screen;
rb_pipe->base.priv = pipe->priv; /* expose wrapped data */
rb_pipe->base.draw = NULL;
make_empty_list(&rb_screen->surfaces);
make_empty_list(&rb_screen->transfers);
- rb_screen->base.winsys = NULL;
-
rb_screen->base.destroy = rbug_screen_destroy;
rb_screen->base.get_name = rbug_screen_get_name;
rb_screen->base.get_vendor = rbug_screen_get_vendor;
softpipe->dump_fs = debug_get_bool_option( "SOFTPIPE_DUMP_FS", FALSE );
softpipe->dump_gs = debug_get_bool_option( "SOFTPIPE_DUMP_GS", FALSE );
- softpipe->pipe.winsys = NULL;
softpipe->pipe.screen = screen;
softpipe->pipe.destroy = softpipe_destroy;
softpipe->pipe.priv = priv;
screen->winsys = winsys;
- screen->base.winsys = NULL;
screen->base.destroy = softpipe_destroy_screen;
screen->base.get_name = softpipe_get_name;
if (svga == NULL)
goto no_svga;
- svga->pipe.winsys = screen->winsys;
svga->pipe.screen = screen;
svga->pipe.priv = priv;
svga->pipe.destroy = svga_destroy;
if(!tr_ctx)
goto error1;
- tr_ctx->base.winsys = NULL;
tr_ctx->base.priv = pipe->priv; /* expose wrapped priv data */
tr_ctx->base.screen = &tr_scr->base;
trace_screen_create(struct pipe_screen *screen)
{
struct trace_screen *tr_scr;
- struct pipe_winsys *winsys;
if(!screen)
goto error1;
if(!tr_scr)
goto error2;
-#if 0
- winsys = trace_winsys_create(screen->winsys);
- if(!winsys)
- goto error3;
-#else
- winsys = screen->winsys;
-#endif
- tr_scr->base.winsys = winsys;
tr_scr->base.destroy = trace_screen_destroy;
tr_scr->base.get_name = trace_screen_get_name;
tr_scr->base.get_vendor = trace_screen_get_vendor;
* - surface functions
*/
struct pipe_context {
- struct pipe_winsys *winsys;
struct pipe_screen *screen;
void *priv; /**< context private data (for DRI for example) */
struct winsys_handle;
/** Opaque type */
struct pipe_fence_handle;
-struct pipe_winsys;
struct pipe_resource;
struct pipe_surface;
struct pipe_transfer;
* context.
*/
struct pipe_screen {
- struct pipe_winsys *winsys;
-
void (*destroy)( struct pipe_screen * );
#include "pipe/p_compiler.h"
struct pipe_screen;
-struct pipe_winsys;
struct pipe_context;
struct pipe_resource;