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>
(cherry picked from commit a51e83b74e)
This commit is contained in:
Mike Blumenkrantz 2022-04-26 10:23:36 -04:00 committed by Dylan Baker
parent f9cc403ebe
commit 0c50ee124a
2 changed files with 2 additions and 1 deletions

View file

@ -373,7 +373,7 @@
"description": "st/draw_feedback: set constant buffer stride",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

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);