diff options
author | Rob Clark <[email protected]> | 2020-07-11 13:21:57 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-07-14 23:26:15 +0000 |
commit | 788792fc466104759cf0abeaa79c52411d26ebb1 (patch) | |
tree | 399db8f604c5fcc4bab1a52e4322a0f3e81c9012 /src/gallium/drivers | |
parent | 5e9cd64f70af7a8ec9a34590f9b6f6fb3066fae1 (diff) |
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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5907>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/ir3/ir3_const.h | 6 |
1 files changed, 4 insertions, 2 deletions
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; |