pan/bi: Add support for gl_{BaseVertex,BaseInstance}
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 11 May 2021 09:16:46 +0000 (11:16 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 May 2021 07:03:51 +0000 (07:03 +0000)
commit7cc4c8c5e568be9d1a5660301edcb5913131201f
tree52576c5f66f0584cd0e857973847d4fb99b61fcd
parent69d81edaf8e502785a615e587ec2581cc540efa0
pan/bi: Add support for gl_{BaseVertex,BaseInstance}

Extend the VERTEX_INSTANCE_OFFSETS sysval to pass
BaseVertex/BaseInstance information to the shader.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Acked-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10417>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h
src/gallium/drivers/panfrost/pan_screen.c
src/panfrost/bifrost/bifrost_compile.c
src/panfrost/lib/pan_indirect_draw.c
src/panfrost/lib/pan_indirect_draw.h
src/panfrost/util/pan_sysval.c