cso: add cso_get_pipe_context
authorMarek Olšák <marek.olsak@amd.com>
Sat, 18 Nov 2017 16:43:42 +0000 (17:43 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 25 Nov 2017 16:16:56 +0000 (17:16 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h

index 757bcf32806ca8ab7747488d55e07dc106b5bebf..df5543c0810858ff184de49c56c2bcf5782f7297 100644 (file)
@@ -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)
 {
index 190d0dc40f6c3c887a905ab182e61d178ca49c6f..b1bc0813442d3578b572653c228fdf5af833d765 100644 (file)
@@ -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,