summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-20 20:02:37 -0800
committerJason Ekstrand <[email protected]>2016-02-20 21:24:31 -0800
commitf1dddeadc235cff20ceb7b8f7d3b70dc92cbe76b (patch)
treedc25c52b7d2d13c884d154d9a6c10e7880d3865c /src/intel
parentb5868d2343dab94be6a8a8e56632fbd0c42a1a2c (diff)
anv: Fix a typo in apply_dynamic_offsets
shader->num_uniforms is in terms of bytes in i965.
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/vulkan/anv_nir_apply_dynamic_offsets.c4
1 files 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;
}