mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 05:00:48 +02:00
gallium-r300: Look less like i915.
Todo: - Figure out how much code goes in winsys. - Make it build. - Make it suck less.
This commit is contained in:
parent
aa96874c7a
commit
3e09a07a26
2 changed files with 12 additions and 4 deletions
|
|
@ -18,10 +18,10 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
|
|||
return NULL;
|
||||
|
||||
context->winsys = amd_winsys;
|
||||
context->pipe.winsys = winsys;
|
||||
context->pipe.screen = screen;
|
||||
context->context.winsys = winsys;
|
||||
context->context.screen = screen;
|
||||
|
||||
context->pipe.destroy = r300_destroy_context;
|
||||
context->context.destroy = r300_destroy_context;
|
||||
|
||||
return &context->pipe;
|
||||
return &context->context;
|
||||
}
|
||||
|
|
@ -23,6 +23,14 @@
|
|||
#ifndef R300_CONTEXT_H
|
||||
#define R300_CONTEXT_H
|
||||
|
||||
struct r300_context {
|
||||
/* Parent class */
|
||||
struct pipe_context context;
|
||||
|
||||
struct amd_winsys* winsys;
|
||||
struct draw_context* draw;
|
||||
}
|
||||
|
||||
/* Convenience cast wrapper. */
|
||||
static struct r300_context* r300_context(struct pipe_context* pipe) {
|
||||
return (struct r300_context*)pipe;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue