freedreno/ir3: add support for load_draw_id
authorJonathan Marek <jonathan@marek.ca>
Wed, 24 Jun 2020 19:58:44 +0000 (15:58 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 25 Jun 2020 15:57:45 +0000 (15:57 +0000)
commit16a9e233da9a4ce64c876e2e69a8e9bb96436ff3
tree95299cda662c7887da211164dfbaaa7ace9b2001
parent01799b3448ca4e31bb83a79b95e8b7634fa2c8c7
freedreno/ir3: add support for load_draw_id

This is part of adding VK_KHR_shader_draw_parameters for turnip.

IR3_DP_VTXID_BASE/IR3_DP_VTXCNT_MAX offsets are changed to match what
CP_DRAW_INDIRECT_MULTI requires.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5635>
src/freedreno/ir3/ir3_compiler_nir.c
src/freedreno/ir3/ir3_context.h
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_shader.h