freedreno/a5xx: Fix indirect draw max_indices calculation
authorEduardo Lima Mitev <elima@igalia.com>
Mon, 10 Jun 2019 21:27:22 +0000 (23:27 +0200)
committerEduardo Lima Mitev <elima@igalia.com>
Tue, 11 Jun 2019 06:28:45 +0000 (08:28 +0200)
commit3fb7b1fd350246c09ef014a9fb8a04728d66e88a
treed2ec190441fd78e5e59ff96c98cda67a0a2f937c
parent40699f74b81c12937c35303de1ce4b637f35f8c9
freedreno/a5xx: Fix indirect draw max_indices calculation

The number of elements to draw should not be affected by the offset.

A similar fix was submitted for a6xx at 79180a05.

Fixes these dEQP tests on a5xx:

dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_separate_grid_500x500_drawcount_8
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_separate_grid_500x500_drawcount_2500
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_separate_grid_500x500_drawcount_2500
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawarrays_combined_grid_500x500_drawcount_2500
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_500x500_drawcount_8
dEQP-GLES31.functional.draw_indirect.compute_interop.large.drawelements_combined_grid_500x500_drawcount_2500

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_draw.h