mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
vl: change the xvmc state_tracker to the new gallium API
This commit is contained in:
parent
d64d6f7712
commit
cd114a92b9
1 changed files with 11 additions and 2 deletions
|
|
@ -211,18 +211,27 @@ Status XvMCClearSubpicture(Display *dpy, XvMCSubpicture *subpicture, short x, sh
|
|||
{
|
||||
XvMCSubpicturePrivate *subpicture_priv;
|
||||
XvMCContextPrivate *context_priv;
|
||||
unsigned int tmp_color;
|
||||
float color_f[4];
|
||||
|
||||
assert(dpy);
|
||||
|
||||
if (!subpicture)
|
||||
return XvMCBadSubpicture;
|
||||
|
||||
/* Convert color to */
|
||||
util_format_read_4f(PIPE_FORMAT_B8G8R8A8_UNORM,
|
||||
color_f, 1,
|
||||
&color, 4,
|
||||
0, 0, 1, 1);
|
||||
|
||||
subpicture_priv = subpicture->privData;
|
||||
context_priv = subpicture_priv->context->privData;
|
||||
/* TODO: Assert clear rect is within bounds? Or clip? */
|
||||
context_priv->vctx->vpipe->surface_fill(context_priv->vctx->vpipe,
|
||||
context_priv->vctx->vpipe->clear_render_target(context_priv->vctx->vpipe,
|
||||
subpicture_priv->sfc, x, y,
|
||||
width, height, color);
|
||||
color_f,
|
||||
width, height);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue