mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
freedreno/ir3: Fix need_driver_params for UBO case
When we are pushing driver params via driver UBO, which need to check the driver_params UBO idx. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31534>
This commit is contained in:
parent
97ab362914
commit
fe1c733798
1 changed files with 3 additions and 1 deletions
|
|
@ -129,7 +129,9 @@ ir3_shader_assemble(struct ir3_shader_variant *v)
|
|||
*/
|
||||
v->constlen = MAX2(v->constlen, info->max_const + 1);
|
||||
|
||||
if (v->constlen > ir3_const_state(v)->offsets.driver_param)
|
||||
const struct ir3_const_state *const_state = ir3_const_state(v);
|
||||
if ((v->constlen > const_state->offsets.driver_param) ||
|
||||
(const_state->driver_params_ubo.idx >= 0))
|
||||
v->need_driver_params = true;
|
||||
|
||||
/* On a4xx and newer, constlen must be a multiple of 16 dwords even though
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue