blob: f7dd1a955f6a59e6625f2835733d19e0e1298fea (
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( struct pipe_winsys *winsys );
static INLINE struct _cl_context *
cl_convert_context( struct pipe_context *pipe )
{
return (struct _cl_context *)pipe;
}
#endif
|