summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-05-06 17:07:10 -0500
committerNicolai Hähnle <[email protected]>2016-05-17 15:28:39 -0500
commit5e89b027b9ca761488b97fd41e1a3e7ec6137dff (patch)
tree9378bf10732569c43ae38871f2eacaad8f9cf0e4
parentc23273532e711f3f0263bfff8bf8a0e733b90e12 (diff)
gallium/radeon: use radeon_emit_array
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index eed46b0922d..42838c28d93 100644
--- a/src/gallium/drivers/r600/r600_state_common.c
+++ b/src/gallium/drivers/r600/r600_state_common.c
@@ -1907,8 +1907,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
radeon_emit(cs, PKT3(PKT3_DRAW_INDEX_IMMD, 1 + size_dw, render_cond_bit));
radeon_emit(cs, info.count);
radeon_emit(cs, V_0287F0_DI_SRC_SEL_IMMEDIATE);
- memcpy(cs->buf+cs->cdw, ib.user_buffer, size_bytes);
- cs->cdw += size_dw;
+ radeon_emit_array(cs, ib.user_buffer, size_dw);
} else {
uint64_t va = r600_resource(ib.buffer)->gpu_address + ib.offset;