freedreno/ir3: add missing VS driver params
authorRob Clark <robdclark@chromium.org>
Sat, 11 Jul 2020 20:21:57 +0000 (13:21 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 23:26:15 +0000 (23:26 +0000)
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>

src/gallium/drivers/freedreno/ir3/ir3_const.h

index aa5208184e7c71400c898ab57321454d23348a86..d7b50650ea12bebd853e0bf51a2ab06ccc83a7d9 100644 (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;