freedreno/a6xx: fix DRAW_IDX_INDIRECT max_indicies
The indirect offset does not effect the index buffer size. Fixes all of dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_100x100_drawcount_* with drawcount > 1. Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
@@ -53,8 +53,7 @@ draw_emit_indirect(struct fd_batch *batch, struct fd_ringbuffer *ring,
|
|||||||
|
|
||||||
if (info->index_size) {
|
if (info->index_size) {
|
||||||
struct pipe_resource *idx = info->index.resource;
|
struct pipe_resource *idx = info->index.resource;
|
||||||
unsigned max_indicies = (idx->width0 - info->indirect->offset) /
|
unsigned max_indicies = idx->width0 / info->index_size;
|
||||||
info->index_size;
|
|
||||||
|
|
||||||
OUT_PKT7(ring, CP_DRAW_INDX_INDIRECT, 6);
|
OUT_PKT7(ring, CP_DRAW_INDX_INDIRECT, 6);
|
||||||
OUT_RINGP(ring, DRAW4(primtype, DI_SRC_SEL_DMA,
|
OUT_RINGP(ring, DRAW4(primtype, DI_SRC_SEL_DMA,
|
||||||
|
Reference in New Issue
Block a user