st/draw_feedback: set constant buffer stride

these shaders all do float-based reads, so using vec4 for robustness
checks breaks gallivm

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16137>
This commit is contained in:
Mike Blumenkrantz 2022-04-26 10:23:36 -04:00 committed by Marge Bot
parent 49df9eeb9d
commit a51e83b74e
1 changed files with 1 additions and 0 deletions

View File

@ -234,6 +234,7 @@ st_feedback_draw_vbo(struct gl_context *ctx,
if (st->prefer_real_buffer_in_constbuf0 && params->StateFlags)
_mesa_load_state_parameters(st->ctx, params);
draw_set_constant_buffer_stride(draw, sizeof(float));
draw_set_mapped_constant_buffer(draw, PIPE_SHADER_VERTEX, 0,
params->ParameterValues,
params->NumParameterValues * 4);