pipe_resource_reference(&buffer->vertex_bufs.individual.quad.buffer, ctx->quads.buffer);
buffer->vertex_bufs.individual.stream = vl_vb_init(&buffer->vertex_stream, ctx->pipe,
- ctx->vertex_buffer_size);
+ ctx->buffer_width / MACROBLOCK_WIDTH *
+ ctx->buffer_height / MACROBLOCK_HEIGHT);
if (!buffer->vertex_bufs.individual.stream.buffer)
goto error_vertex_stream;
ctx->pot_buffers = pot_buffers;
ctx->quads = vl_vb_upload_quads(ctx->pipe, 2, 2);
- ctx->vertex_buffer_size = width / MACROBLOCK_WIDTH * height / MACROBLOCK_HEIGHT;
ctx->ves_y = vl_vb_get_elems_state(ctx->pipe, TGSI_SWIZZLE_X);
ctx->ves_cb = vl_vb_get_elems_state(ctx->pipe, TGSI_SWIZZLE_Y);
ctx->ves_cr = vl_vb_get_elems_state(ctx->pipe, TGSI_SWIZZLE_Z);
const unsigned (*empty_block_mask)[3][2][2];
struct pipe_vertex_buffer quads;
- unsigned vertex_buffer_size;
void *ves_y, *ves_cb, *ves_cr;
struct vl_idct idct_y, idct_c;