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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5907>
This commit is contained in:
Rob Clark 2020-07-11 13:21:57 -07:00 committed by Marge Bot
parent 5e9cd64f70
commit 788792fc46

View File

@ -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;