diff options
author | Marek Olšák <[email protected]> | 2017-10-05 01:54:30 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-10-07 18:26:35 +0200 |
commit | f84a63bc0022ea72c122b96344cd5f88034d9b62 (patch) | |
tree | faf3b5a2ac88c7b823d781c3b88dbf99688f48eb | |
parent | 387590accb267fab57935b7118e998acc2117eef (diff) |
radeonsi: don't use util_draw_arrays_instanced in si_draw_rectangle
Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state_draw.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 43ad97adcb3..adebba645d4 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -29,7 +29,6 @@ #include "sid.h" #include "gfx9d.h" -#include "util/u_draw.h" #include "util/u_index_modify.h" #include "util/u_log.h" #include "util/u_upload_mgr.h" @@ -1565,8 +1564,13 @@ void si_draw_rectangle(struct blitter_context *blitter, vbuffer.buffer_offset = offset; pipe->set_vertex_buffers(pipe, blitter->vb_slot, 1, &vbuffer); - util_draw_arrays_instanced(pipe, R600_PRIM_RECTANGLE_LIST, 0, 3, - 0, num_instances); + + struct pipe_draw_info info = {}; + info.mode = R600_PRIM_RECTANGLE_LIST; + info.count = 3; + info.instance_count = num_instances; + + si_draw_vbo(pipe, &info); pipe_resource_reference(&buf, NULL); } |