aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_render_gen7.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-11-11 11:21:01 +0800
committerChia-I Wu <[email protected]>2014-11-11 13:52:25 +0800
commitc637075ea29811194d12611ec79b3ba4858d1e37 (patch)
treed0143a8247ee4512af887c54858f8da8432e4daf /src/gallium/drivers/ilo/ilo_render_gen7.c
parent2ff88ce4be7f81403818e8c4662300abf68b09ea (diff)
ilo: add 3DSTATE_SO_BUFFER variants
Add gen7_disable_3DSTATE_SO_BUFFER() to disable SO buffers. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_render_gen7.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_render_gen7.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/ilo/ilo_render_gen7.c b/src/gallium/drivers/ilo/ilo_render_gen7.c
index 8830db4e852..2051f1254bb 100644
--- a/src/gallium/drivers/ilo/ilo_render_gen7.c
+++ b/src/gallium/drivers/ilo/ilo_render_gen7.c
@@ -458,14 +458,12 @@ gen7_draw_sol(struct ilo_render *r,
for (i = 0; i < vec->so.count; i++) {
const int stride = so_info->stride[i] * 4; /* in bytes */
- int base = 0;
- gen7_3DSTATE_SO_BUFFER(r->builder, i, base, stride,
- vec->so.states[i]);
+ gen7_3DSTATE_SO_BUFFER(r->builder, i, stride, vec->so.states[i]);
}
for (; i < 4; i++)
- gen7_3DSTATE_SO_BUFFER(r->builder, i, 0, 0, NULL);
+ gen7_disable_3DSTATE_SO_BUFFER(r->builder, i);
}
/* 3DSTATE_SO_DECL_LIST */