summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r--src/gallium/drivers/r300/r300_emit.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c
index 92e6ec606c..ec1d521800 100644
--- a/src/gallium/drivers/r300/r300_emit.c
+++ b/src/gallium/drivers/r300/r300_emit.c
@@ -647,64 +647,6 @@ void r300_emit_draw_packet(struct r300_context* r300)
END_CS;
}
#endif
-void r300_emit_draw_arrays(struct r300_context *r300,
- unsigned count)
-{
- CS_LOCALS(r300);
- assert(count < 65536);
-
- BEGIN_CS(4);
- OUT_CS_REG(R300_VAP_VF_MAX_VTX_INDX, count);
- OUT_CS_PKT3(R300_PACKET3_3D_DRAW_VBUF_2, 0);
- OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_VERTEX_LIST | (count << 16) |
- r300->hw_prim);
- END_CS;
-}
-
-void r300_emit_draw_elements(struct r300_context *r300,
- struct pipe_buffer* indexBuffer,
- unsigned indexSize,
- unsigned minIndex,
- unsigned maxIndex,
- unsigned start,
- unsigned count)
-{
- CS_LOCALS(r300);
- assert(indexSize == 4 || indexSize == 2);
- assert(count < 65536);
- assert((start * indexSize) % 4 == 0);
-
- uint32_t size_dwords;
- uint32_t skip_dwords = indexSize * start / sizeof(uint32_t);
- assert(skip_dwords == 0);
-
- BEGIN_CS(10);
- OUT_CS_REG(R300_VAP_VF_MAX_VTX_INDX, maxIndex);
- OUT_CS_PKT3(R300_PACKET3_3D_DRAW_INDX_2, 0);
- if (indexSize == 4) {
- size_dwords = count + start;
- OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES | (count << 16) |
- R300_VAP_VF_CNTL__INDEX_SIZE_32bit | r300->hw_prim);
- } else {
- size_dwords = (count + start + 1) / 2;
- OUT_CS(R300_VAP_VF_CNTL__PRIM_WALK_INDICES |
- (count << 16) | r300->hw_prim);
- }
-
- OUT_CS_PKT3(R300_PACKET3_INDX_BUFFER, 2);
- OUT_CS(R300_INDX_BUFFER_ONE_REG_WR | (R300_VAP_PORT_IDX0 >> 2) |
- (0 << R300_INDX_BUFFER_SKIP_SHIFT));
- OUT_CS(skip_dwords);
- OUT_CS(size_dwords);
- cs_winsys->write_cs_reloc(cs_winsys,
- indexBuffer,
- RADEON_GEM_DOMAIN_GTT,
- 0,
- 0);
- cs_count -= 2;
-
- END_CS;
-}
void r300_emit_vertex_format_state(struct r300_context* r300)
{