blob: 26256a717b98f3a0ae2fb3e9f5965c891b9bae42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef CONTEXT_H
#define CONTEXT_H
#include "CL/cl.h"
#include "pipe/p_context.h"
struct _cl_context {
struct pipe_context pipe;
cl_uint id;
};
void cl_set_current_context( struct _cl_context *ctx);
struct _cl_context *cl_current_context( void);
struct pipe_context *cl_create_context();
static INLINE struct _cl_context *
cl_convert_context( struct pipe_context *pipe )
{
return (struct _cl_context *)pipe;
}
#endif
|