cso: add cso_get_pipe_context

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-11-18 17:43:42 +01:00
parent 3132afdf4c
commit e20364df82
2 changed files with 5 additions and 0 deletions

View 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)
{

View 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,