Home
last modified time | relevance | path

Searched refs:dri_drawable (Results 1 – 7 of 7) sorted by relevance

/hardware/intel/common/libva/va/x11/
Dva_dricommon.c61 static struct dri_drawable *
66 struct dri_drawable *dri_drawable = dri_state->drawable_hash[index]; in do_drawable_hash() local
68 while (dri_drawable) { in do_drawable_hash()
69 if (dri_drawable->x_drawable == drawable) in do_drawable_hash()
70 return dri_drawable; in do_drawable_hash()
71 dri_drawable = dri_drawable->next; in do_drawable_hash()
74 dri_drawable = dri_state->createDrawable(ctx, drawable); in do_drawable_hash()
75 dri_drawable->x_drawable = drawable; in do_drawable_hash()
76 dri_drawable->is_window = is_window(ctx->native_dpy, drawable); in do_drawable_hash()
77 dri_drawable->next = dri_state->drawable_hash[index]; in do_drawable_hash()
[all …]
Dva_dricommon.h64 struct dri_drawable struct
72 struct dri_drawable *next; argument
84 struct dri_drawable *drawable_hash[DRAWABLE_HASH_SZ];
86 struct dri_drawable *(*createDrawable)(VADriverContextP ctx, XID x_drawable);
87 void (*destroyDrawable)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
88 void (*swapBuffer)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
89 … union dri_buffer *(*getRenderingBuffer)(VADriverContextP ctx, struct dri_drawable *dri_drawable);
96 void free_drawable(VADriverContextP ctx, struct dri_drawable* dri_drawable);
98 struct dri_drawable *dri_get_drawable(VADriverContextP ctx, XID drawable);
99 void dri_swap_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable);
[all …]
Ddri2_util.c52 struct dri_drawable base;
63 static struct dri_drawable *
82 dri2DestroyDrawable(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri2DestroyDrawable() argument
84 VA_DRI2DestroyDrawable(ctx->native_dpy, dri_drawable->x_drawable); in dri2DestroyDrawable()
85 free(dri_drawable); in dri2DestroyDrawable()
89 dri2SwapBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri2SwapBuffer() argument
91 struct dri2_drawable *dri2_drawable = (struct dri2_drawable *)dri_drawable; in dri2SwapBuffer()
98 VA_DRI2SwapBuffers(ctx->native_dpy, dri_drawable->x_drawable, 0, 0, in dri2SwapBuffer()
107 VA_DRI2CopyRegion(ctx->native_dpy, dri_drawable->x_drawable, region, in dri2SwapBuffer()
115 dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri2GetRenderingBuffer() argument
[all …]
Ddri1_util.c18 struct dri_drawable base;
24 static struct dri_drawable *
40 dri1DestroyDrawable(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri1DestroyDrawable() argument
42 free(dri_drawable); in dri1DestroyDrawable()
46 dri1SwapBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri1SwapBuffer() argument
52 dri1GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) in dri1GetRenderingBuffer() argument
54 struct dri1_drawable *dri1_drawable = (struct dri1_drawable *)dri_drawable; in dri1GetRenderingBuffer()
/hardware/intel/img/psb_video/src/x11/
Dpsb_ctexture.c119 struct dri_drawable *tmp_drawable; in psb_dri_reset_mem()
122 tmp_drawable = (struct dri_drawable *)texture_priv->dri_drawable; in psb_dri_reset_mem()
146 struct dri_drawable *tmp_drawable; in psb_dri_init()
150 if (texture_priv->dri_drawable) { in psb_dri_init()
151 free_drawable(ctx, texture_priv->dri_drawable); in psb_dri_init()
152 texture_priv->dri_drawable = NULL; in psb_dri_init()
155 texture_priv->dri_drawable = dri_get_drawable(ctx, draw); in psb_dri_init()
156 if (!texture_priv->dri_drawable) { in psb_dri_init()
160 tmp_drawable = (struct dri_drawable *)texture_priv->dri_drawable; in psb_dri_init()
162 dri_buffer = dri_get_rendering_buffer(ctx, texture_priv->dri_drawable); in psb_dri_init()
[all …]
/hardware/intel/img/psb_video/src/
Dpsb_texture.h112 unsigned char *dri_drawable; member
Dpsb_texture.c256 texture_priv->dri_drawable = NULL; in psb_ctexture_init()