diff options
author | Dave Airlie <airlied@redhat.com> | 2010-09-17 13:18:42 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-09-17 15:29:31 +1000 |
commit | da96313afe3cff66d8ae0c9675a6299b3d7510f9 (patch) | |
tree | 439d3e7a85e600f5d5b0ea2645007ee82ab26837 /src/gallium/drivers/r600 | |
parent | 189a59751352208cb0386131f9ad82256ec9bed9 (diff) |
r600g: add support for kernel bo
this moves to using a pb bufmgr instead of kernel bos directly.
Diffstat (limited to 'src/gallium/drivers/r600')
-rw-r--r-- | src/gallium/drivers/r600/r600_context.c | 7 | ||||
-rw-r--r-- | src/gallium/drivers/r600/radeon.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_context.c b/src/gallium/drivers/r600/r600_context.c index 2ec25548e3..cca1e35673 100644 --- a/src/gallium/drivers/r600/r600_context.c +++ b/src/gallium/drivers/r600/r600_context.c @@ -80,6 +80,13 @@ void r600_flush(struct pipe_context *ctx, unsigned flags, r600_queries_resume(ctx); } +void r600_flush_ctx(void *data) +{ + struct r600_context *rctx = data; + + rctx->context.flush(&rctx->context, 0, NULL); +} + struct pipe_context *r600_create_context(struct pipe_screen *screen, void *priv) { struct r600_context *rctx = CALLOC_STRUCT(r600_context); diff --git a/src/gallium/drivers/r600/radeon.h b/src/gallium/drivers/r600/radeon.h index 36bfb747b5..5f9f21db1b 100644 --- a/src/gallium/drivers/r600/radeon.h +++ b/src/gallium/drivers/r600/radeon.h @@ -212,4 +212,5 @@ enum r600_stype { #define R600_QUERY_SIZE 1 #define R600_QUERY_PM4 128 +void r600_flush_ctx(void *data); #endif |