lima: fix allocation of GP outputs storage for indexed draw
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 3 Jan 2020 04:58:19 +0000 (20:58 -0800)
committerVasily Khoruzhick <anarsoul@gmail.com>
Fri, 3 Jan 2020 18:57:36 +0000 (18:57 +0000)
commit1de06e540a1de6d857c5fd804e21a26840458c02
treed69d368e6ef7386a8230ed1442df5e562225f2ba
parent9bd8000c6c3742ac36ff79ef3566bea0851a1682
lima: fix allocation of GP outputs storage for indexed draw

For indexed draw number of VS invocations is (ctx->max_index - ctx->min_index + 1),
so we have to use this number when calculating space for varyings, gl_Position and
gl_PointSize.

Fixes dEQP-GLES2.functional.buffer.write.use.index_array.array and
dEQP-GLES2.functional.buffer.write.use.index_array.element_array

Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_draw.c