From f1dddeadc235cff20ceb7b8f7d3b70dc92cbe76b Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sat, 20 Feb 2016 20:02:37 -0800 Subject: [PATCH] anv: Fix a typo in apply_dynamic_offsets shader->num_uniforms is in terms of bytes in i965. --- src/intel/vulkan/anv_nir_apply_dynamic_offsets.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c b/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c index e71a8ffb1f4..46bc5d23a4e 100644 --- a/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c +++ b/src/intel/vulkan/anv_nir_apply_dynamic_offsets.c @@ -161,9 +161,9 @@ anv_nir_apply_dynamic_offsets(struct anv_pipeline *pipeline, struct anv_push_constants *null_data = NULL; for (unsigned i = 0; i < MAX_DYNAMIC_BUFFERS; i++) { - prog_data->param[i * 2 + shader->num_uniforms] = + prog_data->param[i * 2 + shader->num_uniforms / 4] = (const union gl_constant_value *)&null_data->dynamic[i].offset; - prog_data->param[i * 2 + 1 + shader->num_uniforms] = + prog_data->param[i * 2 + 1 + shader->num_uniforms / 4] = (const union gl_constant_value *)&null_data->dynamic[i].range; } -- 2.30.2