diff options
author | Marek Olšák <[email protected]> | 2017-11-18 17:43:42 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-11-25 17:16:56 +0100 |
commit | e20364df828d3758c570658dff780d01cab0e5ed (patch) | |
tree | 91fcaf3b8b13505571677754a89ca063aded2d84 /src/gallium | |
parent | 3132afdf4c12abcb32a2cbe7eb262b9907e60594 (diff) |
cso: add cso_get_pipe_context
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 4 | ||||
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index 757bcf32806..df5543c0810 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -128,6 +128,10 @@ struct cso_context { struct pipe_stencil_ref stencil_ref, stencil_ref_saved; }; +struct pipe_context *cso_get_pipe_context(struct cso_context *cso) +{ + return cso->pipe; +} static boolean delete_blend_state(struct cso_context *ctx, void *state) { diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h index 190d0dc40f6..b1bc0813442 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.h +++ b/src/gallium/auxiliary/cso_cache/cso_context.h @@ -44,6 +44,7 @@ struct u_vbuf; struct cso_context *cso_create_context(struct pipe_context *pipe, unsigned u_vbuf_flags); void cso_destroy_context( struct cso_context *cso ); +struct pipe_context *cso_get_pipe_context(struct cso_context *cso); enum pipe_error cso_set_blend( struct cso_context *cso, |