diff options
Diffstat (limited to 'src/gallium/drivers')
-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 2ec25548e3c..cca1e356734 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 36bfb747b51..5f9f21db1b4 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 |