diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-04-06 13:19:46 +0200 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2012-09-26 11:45:55 +0200 |
commit | 845baeff8443860be03b72ccbab9f44fa2719c32 (patch) | |
tree | 31b8987fc7df93323791a594a97acd0b89b75eef /va/x11 | |
parent | 4b553202ca1ba85b7754a8bdad2771c0a4562ed1 (diff) | |
download | libva-845baeff8443860be03b72ccbab9f44fa2719c32.tar.gz |
API: backend: rename VADriverContext.dri_state to drm_state.
VADriverContext.drm_state holds data structures derived from struct
drm_state, thus also including struct dri_state for VA/X11 drivers.
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'va/x11')
-rw-r--r-- | va/x11/dri2_util.c | 4 | ||||
-rw-r--r-- | va/x11/va_dricommon.c | 10 | ||||
-rw-r--r-- | va/x11/va_x11.c | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/va/x11/dri2_util.c b/va/x11/dri2_util.c index 47f663a..0a2ac45 100644 --- a/va/x11/dri2_util.c +++ b/va/x11/dri2_util.c @@ -164,7 +164,7 @@ dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) void dri2Close(VADriverContextP ctx) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; free_drawable_hashtable(ctx); @@ -175,7 +175,7 @@ dri2Close(VADriverContextP ctx) Bool isDRI2Connected(VADriverContextP ctx, char **driver_name) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; int major, minor; int error_base; int event_base; diff --git a/va/x11/va_dricommon.c b/va/x11/va_dricommon.c index 6816b0f..c0cbbcc 100644 --- a/va/x11/va_dricommon.c +++ b/va/x11/va_dricommon.c @@ -61,7 +61,7 @@ is_window(Display *dpy, Drawable drawable) static struct dri_drawable * do_drawable_hash(VADriverContextP ctx, XID drawable) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; int index = drawable % DRAWABLE_HASH_SZ; struct dri_drawable *dri_drawable = dri_state->drawable_hash[index]; @@ -83,7 +83,7 @@ do_drawable_hash(VADriverContextP ctx, XID drawable) void free_drawable(VADriverContextP ctx, struct dri_drawable* dri_drawable) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; int i = 0; while (i++ < DRAWABLE_HASH_SZ) { @@ -97,7 +97,7 @@ free_drawable(VADriverContextP ctx, struct dri_drawable* dri_drawable) void free_drawable_hashtable(VADriverContextP ctx) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; int i; struct dri_drawable *dri_drawable, *prev; @@ -123,7 +123,7 @@ dri_get_drawable(VADriverContextP ctx, XID drawable) void dri_swap_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; dri_state->swapBuffer(ctx, dri_drawable); } @@ -131,7 +131,7 @@ dri_swap_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) union dri_buffer * dri_get_rendering_buffer(VADriverContextP ctx, struct dri_drawable *dri_drawable) { - struct dri_state *dri_state = (struct dri_state *)ctx->dri_state; + struct dri_state *dri_state = (struct dri_state *)ctx->drm_state; return dri_state->getRenderingBuffer(ctx, dri_drawable); } diff --git a/va/x11/va_x11.c b/va/x11/va_x11.c index 4f65fd0..05aa697 100644 --- a/va/x11/va_x11.c +++ b/va/x11/va_x11.c @@ -62,12 +62,12 @@ static void va_DisplayContextDestroy ( return; ctx = pDisplayContext->pDriverContext; - dri_state = ctx->dri_state; + dri_state = ctx->drm_state; if (dri_state && dri_state->close) dri_state->close(ctx); - free(pDisplayContext->pDriverContext->dri_state); + free(pDisplayContext->pDriverContext->drm_state); free(pDisplayContext->pDriverContext); free(pDisplayContext); } @@ -174,7 +174,7 @@ VADisplay vaGetDisplay ( pDisplayContext->vaDestroy = va_DisplayContextDestroy; pDisplayContext->vaGetDriverName = va_DisplayContextGetDriverName; pDisplayContext->opaque = NULL; - pDriverContext->dri_state = dri_state; + pDriverContext->drm_state = dri_state; dpy = (VADisplay)pDisplayContext; } else |