From: Rob Clark Date: Sat, 11 Jul 2020 20:21:57 +0000 (-0700) Subject: freedreno/ir3: add missing VS driver params X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=788792fc466104759cf0abeaa79c52411d26ebb1;p=mesa.git freedreno/ir3: add missing VS driver params Some of these only used by turnip so far, this is just for clarity. Signed-off-by: Rob Clark Part-of: --- diff --git a/src/gallium/drivers/freedreno/ir3/ir3_const.h b/src/gallium/drivers/freedreno/ir3/ir3_const.h index aa5208184e7..d7b50650ea1 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_const.h +++ b/src/gallium/drivers/freedreno/ir3/ir3_const.h @@ -447,9 +447,11 @@ ir3_emit_vs_driver_params(const struct ir3_shader_variant *v, const struct ir3_const_state *const_state = ir3_const_state(v); uint32_t offset = const_state->offsets.driver_param; uint32_t vertex_params[IR3_DP_VS_COUNT] = { - [IR3_DP_VTXID_BASE] = info->index_size ? + [IR3_DP_DRAWID] = 0, /* filled by hw (CP_DRAW_INDIRECT_MULTI) */ + [IR3_DP_VTXID_BASE] = info->index_size ? info->index_bias : info->start, - [IR3_DP_VTXCNT_MAX] = max_tf_vtx(ctx, v), + [IR3_DP_INSTID_BASE] = info->start_instance, + [IR3_DP_VTXCNT_MAX] = max_tf_vtx(ctx, v), }; if (v->key.ucp_enables) { struct pipe_clip_state *ucp = &ctx->ucp;