search for: to_tegra_screen

Displaying 2 results from an estimated 2 matches for "to_tegra_screen".

2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...level, usage, box, data, stride, > + layer_stride); > +} > + > +struct pipe_context * > +tegra_context_create(struct pipe_screen *pscreen, void *priv) > +{ > + struct tegra_screen *screen = to_tegra_screen(pscreen); > + struct tegra_context *context; > + > + context = calloc(1, sizeof(*context)); > + if (!context) > + return NULL; > + > + context->gpu = screen->gpu->context_create(screen->gpu, priv); > + if (!context->...
2014 Nov 27
7
[RFC] tegra: Initial support
...tegra_context(pcontext); + + context->gpu->transfer_inline_write(context->gpu, resource->gpu, + level, usage, box, data, stride, + layer_stride); +} + +struct pipe_context * +tegra_context_create(struct pipe_screen *pscreen, void *priv) +{ + struct tegra_screen *screen = to_tegra_screen(pscreen); + struct tegra_context *context; + + context = calloc(1, sizeof(*context)); + if (!context) + return NULL; + + context->gpu = screen->gpu->context_create(screen->gpu, priv); + if (!context->gpu) { + debug_error("failed to create GPU context\n"); + free(context)...