diff options
author | Chia-I Wu <[email protected]> | 2014-09-28 00:41:42 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-09-30 16:41:31 +0800 |
commit | 343b014b57ecc5431477e090100e6a26edbda540 (patch) | |
tree | 1d375a3baabd41c00dd7836f9ca45c79084a161f /src/gallium/drivers/ilo/ilo_render_dynamic.c | |
parent | 46537f1d03ba6de83be70ac574f633bb4342a327 (diff) |
ilo: use dynamic bo for rectlist vertices
The size is always 24 bytes. We can upload them to the dynamic buffer.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render_dynamic.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_render_dynamic.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render_dynamic.c b/src/gallium/drivers/ilo/ilo_render_dynamic.c index 74d788dd515..dfd29c3c3ac 100644 --- a/src/gallium/drivers/ilo/ilo_render_dynamic.c +++ b/src/gallium/drivers/ilo/ilo_render_dynamic.c @@ -395,17 +395,23 @@ ilo_render_get_rectlist_dynamic_states_len(const struct ilo_render *render, { ILO_DEV_ASSERT(render->dev, 6, 7.5); - return 64; + return 96; } void ilo_render_emit_rectlist_dynamic_states(struct ilo_render *render, - const struct ilo_blitter *blitter) + const struct ilo_blitter *blitter, + struct ilo_render_rectlist_session *session) { const unsigned dynamic_used = ilo_builder_dynamic_used(render->builder); ILO_DEV_ASSERT(render->dev, 6, 7.5); + /* both are inclusive */ + session->vb_start = gen6_user_vertex_buffer(render->builder, + sizeof(blitter->vertices), (const void *) blitter->vertices); + session->vb_end = session->vb_start + sizeof(blitter->vertices) - 1; + if (blitter->uses & ILO_BLITTER_USE_DSA) { render->state.DEPTH_STENCIL_STATE = gen6_DEPTH_STENCIL_STATE(render->builder, &blitter->dsa); |