summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-28 00:41:42 +0800
committerChia-I Wu <[email protected]>2014-09-30 16:41:31 +0800
commit343b014b57ecc5431477e090100e6a26edbda540 (patch)
tree1d375a3baabd41c00dd7836f9ca45c79084a161f /src/gallium/drivers/ilo/ilo_render.c
parent46537f1d03ba6de83be70ac574f633bb4342a327 (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.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_render.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render.c b/src/gallium/drivers/ilo/ilo_render.c
index ae778584972..945d4cdb5aa 100644
--- a/src/gallium/drivers/ilo/ilo_render.c
+++ b/src/gallium/drivers/ilo/ilo_render.c
@@ -367,10 +367,13 @@ void
ilo_render_emit_rectlist(struct ilo_render *render,
const struct ilo_blitter *blitter)
{
+ struct ilo_render_rectlist_session session;
+
ILO_DEV_ASSERT(render->dev, 6, 7.5);
- ilo_render_emit_rectlist_dynamic_states(render, blitter);
- ilo_render_emit_rectlist_commands(render, blitter);
+ memset(&session, 0, sizeof(session));
+ ilo_render_emit_rectlist_dynamic_states(render, blitter, &session);
+ ilo_render_emit_rectlist_commands(render, blitter, &session);
}
int