Mesa (main): zink: update streamout buffer strides inline
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jul 7 03:16:05 UTC 2021
Module: Mesa
Branch: main
Commit: 6f4dc4b6b8fa249d631023e4f884fdbe50256c9c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6f4dc4b6b8fa249d631023e4f884fdbe50256c9c
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue May 11 12:50:32 2021 -0400
zink: update streamout buffer strides inline
loops--
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11746>
---
src/gallium/drivers/zink/zink_draw.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_draw.c b/src/gallium/drivers/zink/zink_draw.c
index 8b2f1b30634..1936f4effb0 100644
--- a/src/gallium/drivers/zink/zink_draw.c
+++ b/src/gallium/drivers/zink/zink_draw.c
@@ -638,17 +638,12 @@ zink_draw_vbo(struct pipe_context *pctx,
zink_query_update_gs_states(ctx);
if (have_streamout) {
- for (unsigned j = 0; j < ctx->num_so_targets; j++) {
- struct zink_so_target *t = zink_so_target(ctx->so_targets[j]);
- if (t)
- t->stride = ctx->last_vertex_stage->streamout.so_info.stride[j] * sizeof(uint32_t);
- }
-
for (unsigned i = 0; i < ctx->num_so_targets; i++) {
struct zink_so_target *t = zink_so_target(ctx->so_targets[i]);
counter_buffers[i] = VK_NULL_HANDLE;
if (t) {
struct zink_resource *res = zink_resource(t->counter_buffer);
+ t->stride = ctx->last_vertex_stage->streamout.so_info.stride[i] * sizeof(uint32_t);
zink_batch_reference_resource_rw(batch, res, true);
if (t->counter_buffer_valid) {
counter_buffers[i] = res->obj->buffer;
More information about the mesa-commit
mailing list