mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-02 15:38:03 +02:00
intel/context: Add drm_intel_context type
Add an opaque type representing a HW context. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
a5b2946889
commit
b3b123dfb1
2 changed files with 6 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
|||
struct drm_clip_rect;
|
||||
|
||||
typedef struct _drm_intel_bufmgr drm_intel_bufmgr;
|
||||
typedef struct _drm_intel_context drm_intel_context;
|
||||
typedef struct _drm_intel_bo drm_intel_bo;
|
||||
|
||||
struct _drm_intel_bo {
|
||||
|
|
|
|||
|
|
@ -280,6 +280,11 @@ struct _drm_intel_bufmgr {
|
|||
int debug;
|
||||
};
|
||||
|
||||
struct _drm_intel_context {
|
||||
unsigned int ctx_id;
|
||||
struct _drm_intel_bufmgr *bufmgr;
|
||||
};
|
||||
|
||||
#define ALIGN(value, alignment) ((value + alignment - 1) & ~(alignment - 1))
|
||||
#define ROUND_UP_TO(x, y) (((x) + (y) - 1) / (y) * (y))
|
||||
#define ROUND_UP_TO_MB(x) ROUND_UP_TO((x), 1024*1024)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue