for (i = 0; i < VL_MAX_PLANES; ++i)
dec->pipe->delete_vertex_elements_state(dec->pipe, dec->ves_eb[i]);
- for (i = 0; i < 2; ++i)
- dec->pipe->delete_vertex_elements_state(dec->pipe, dec->ves_mv[i]);
+ dec->pipe->delete_vertex_elements_state(dec->pipe, dec->ves_mv);
pipe_resource_reference(&dec->quads.buffer, NULL);
pipe_resource_reference(&dec->pos.buffer, NULL);
vb[0] = dec->quads;
vb[1] = dec->pos;
+ dec->pipe->bind_vertex_elements_state(dec->pipe, dec->ves_mv);
for (i = 0; i < VL_MAX_PLANES; ++i) {
vl_mc_set_surface(&buf->mc[i], surfaces[i]);
vb[2] = vl_vb_get_mv(&buf->vertex_stream, j);;
dec->pipe->set_vertex_buffers(dec->pipe, 3, vb);
- dec->pipe->bind_vertex_elements_state(dec->pipe, dec->ves_mv[j]);
vl_mc_render_ref(&buf->mc[i], sv[j][i]);
}
}
for (i = 0; i < VL_MAX_PLANES; ++i)
dec->ves_eb[i] = vl_vb_get_ves_eb(dec->pipe, i);
- for (i = 0; i < 2; ++i)
- dec->ves_mv[i] = vl_vb_get_ves_mv(dec->pipe, i);
+ dec->ves_mv = vl_vb_get_ves_mv(dec->pipe);
/* TODO: Implement 422, 444 */
assert(dec->base.chroma_format == PIPE_VIDEO_CHROMA_FORMAT_420);
void *vl_vb_get_ves_eb(struct pipe_context *pipe, int component);
-void *vl_vb_get_ves_mv(struct pipe_context *pipe, int motionvector);
+void *vl_vb_get_ves_mv(struct pipe_context *pipe);
void vl_vb_init(struct vl_vertex_buffer *buffer,
struct pipe_context *pipe,