assert(offset * 4 + params < v->constlen * 4);
- ring_wfi(ctx->batch, ring);
ctx->screen->emit_const_bo(ring, v->type, false, offset * 4, params, prscs, offsets);
}
}
sizes[off] = sb->sb[index].buffer_size;
}
- ring_wfi(ctx->batch, ring);
emit_const(ctx, ring, v, offset * 4,
0, ARRAY_SIZE(sizes), sizes, NULL);
}
}
uint32_t size = MIN2(ARRAY_SIZE(dims), v->constlen * 4 - offset * 4);
- ring_wfi(ctx->batch, ring);
emit_const(ctx, ring, v, offset * 4, 0, size, dims, NULL);
}
}
size *= 4;
if (size > 0) {
- ring_wfi(ctx->batch, ring);
emit_const(ctx, ring, v, base,
0, size, const_state->immediates[0].val, NULL);
}
assert(offset * 4 + params < v->constlen * 4);
- ring_wfi(ctx->batch, ring);
ctx->screen->emit_const_bo(ring, v->type, true, offset * 4, params, prscs, offsets);
}
}
constbuf = &ctx->constbuf[t];
shader_dirty = !!(dirty & FD_DIRTY_SHADER_PROG);
+ ring_wfi(ctx->batch, ring);
+
emit_user_consts(ctx, v, ring, constbuf);
emit_ubos(ctx, v, ring, constbuf);
if (shader_dirty)
if (dirty & (FD_DIRTY_SHADER_PROG | FD_DIRTY_SHADER_SSBO)) {
struct fd_shaderbuf_stateobj *sb = &ctx->shaderbuf[t];
+ ring_wfi(ctx->batch, ring);
emit_ssbo_sizes(ctx, v, ring, sb);
}
if (dirty & (FD_DIRTY_SHADER_PROG | FD_DIRTY_SHADER_IMAGE)) {
struct fd_shaderimg_stateobj *si = &ctx->shaderimg[t];
+ ring_wfi(ctx->batch, ring);
emit_image_dims(ctx, v, ring, si);
}
}
vertex_params_size = ARRAY_SIZE(vertex_params);
}
- ring_wfi(ctx->batch, ring);
-
bool needs_vtxid_base =
- ir3_find_sysval_regid(v, SYSTEM_VALUE_VERTEX_ID_ZERO_BASE) != regid(63, 0);
+ ir3_find_sysval_regid(v, SYSTEM_VALUE_VERTEX_ID_ZERO_BASE) != regid(63, 0);
/* for indirect draw, we need to copy VTXID_BASE from
* indirect-draw parameters buffer.. which is annoying
if (vertex_params[IR3_DP_VTXCNT_MAX] > 0) {
emit_tfbos(ctx, v, ring);
}
-
}
void
emit_common_consts(v, ring, ctx, PIPE_SHADER_VERTEX);
/* emit driver params every time: */
- if (info && ir3_needs_vs_driver_params(v))
+ if (info && ir3_needs_vs_driver_params(v)) {
+ ring_wfi(ctx->batch, ring);
ir3_emit_vs_driver_params(v, ring, ctx, info);
+ }
}
void