mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-12 14:20:16 +01:00
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:
parent
dce56ea2d0
commit
94dbadc2bf
2 changed files with 2 additions and 1 deletions
|
|
@ -332,7 +332,7 @@
|
|||
"description": "st/draw_feedback: set constant buffer stride",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"because_sha": null
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue