diff options
Diffstat (limited to 'src/gallium/state_trackers/xvmc')
-rw-r--r-- | src/gallium/state_trackers/xvmc/attributes.c | 6 | ||||
-rw-r--r-- | src/gallium/state_trackers/xvmc/context.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/xvmc/attributes.c b/src/gallium/state_trackers/xvmc/attributes.c index da7b6493ba8..58bafb1343f 100644 --- a/src/gallium/state_trackers/xvmc/attributes.c +++ b/src/gallium/state_trackers/xvmc/attributes.c @@ -77,7 +77,7 @@ Status XvMCSetAttribute(Display *dpy, XvMCContext *context, Atom attribute, int { XvMCContextPrivate *context_priv; const char *attr; - float csc[16]; + vl_csc_matrix csc; assert(dpy); @@ -108,9 +108,9 @@ Status XvMCSetAttribute(Display *dpy, XvMCContext *context, Atom attribute, int vl_csc_get_matrix ( context_priv->color_standard, - &context_priv->procamp, true, csc + &context_priv->procamp, true, &csc ); - vl_compositor_set_csc_matrix(&context_priv->cstate, csc); + vl_compositor_set_csc_matrix(&context_priv->cstate, (const vl_csc_matrix *)&csc); XVMC_MSG(XVMC_TRACE, "[XvMC] Set attribute %s to value %d.\n", attr, value); diff --git a/src/gallium/state_trackers/xvmc/context.c b/src/gallium/state_trackers/xvmc/context.c index c598cad7455..7b97a67d662 100644 --- a/src/gallium/state_trackers/xvmc/context.c +++ b/src/gallium/state_trackers/xvmc/context.c @@ -192,7 +192,7 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id, struct vl_screen *vscreen; struct pipe_context *pipe; XvMCContextPrivate *context_priv; - float csc[16]; + vl_csc_matrix csc; XVMC_MSG(XVMC_TRACE, "[XvMC] Creating context %p.\n", context); @@ -289,9 +289,9 @@ Status XvMCCreateContext(Display *dpy, XvPortID port, int surface_type_id, vl_csc_get_matrix ( context_priv->color_standard, - &context_priv->procamp, true, csc + &context_priv->procamp, true, &csc ); - vl_compositor_set_csc_matrix(&context_priv->cstate, csc); + vl_compositor_set_csc_matrix(&context_priv->cstate, (const vl_csc_matrix *)&csc); context_priv->vscreen = vscreen; context_priv->pipe = pipe; |