assert(c);
/* Allocate new memory for vertices. */
- u_upload_alloc(c->upload, 0,
+ u_upload_alloc(c->pipe->stream_uploader, 0,
c->vertex_buf.stride * VL_COMPOSITOR_MAX_LAYERS * 4, /* size */
4, /* alignment */
&c->vertex_buf.buffer_offset, &c->vertex_buf.buffer,
}
}
- u_upload_unmap(c->upload);
+ u_upload_unmap(c->pipe->stream_uploader);
}
static void
{
assert(c);
- u_upload_destroy(c->upload);
cleanup_buffers(c);
cleanup_shaders(c);
cleanup_pipe_state(c);
c->pipe = pipe;
- c->upload = u_upload_create(pipe, 128 * 1024, PIPE_BIND_VERTEX_BUFFER,
- PIPE_USAGE_STREAM);
-
- if (!c->upload)
- return false;
-
if (!init_pipe_state(c)) {
- u_upload_destroy(c->upload);
return false;
}
if (!init_shaders(c)) {
- u_upload_destroy(c->upload);
cleanup_pipe_state(c);
return false;
}
if (!init_buffers(c)) {
- u_upload_destroy(c->upload);
cleanup_shaders(c);
cleanup_pipe_state(c);
return false;
if (is_vpp) {
context->decoder = NULL;
- if (!drv->compositor.upload) {
- FREE(context);
- return VA_STATUS_ERROR_INVALID_CONTEXT;
- }
} else {
context->templat.profile = config->profile;
context->templat.entrypoint = config->entrypoint;