From bd0e25d41e3b5369889747fe683fe47abf1899c9 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 10 Dec 2015 22:36:47 -0800 Subject: [PATCH] anv/apply_pipeline_layout: Multiply uniform sizes by 4 This is because uniforms are now in terms of bytes everywhere. --- src/vulkan/anv_nir_apply_pipeline_layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/anv_nir_apply_pipeline_layout.c b/src/vulkan/anv_nir_apply_pipeline_layout.c index 5a31b02ae4f..96b9f21fd09 100644 --- a/src/vulkan/anv_nir_apply_pipeline_layout.c +++ b/src/vulkan/anv_nir_apply_pipeline_layout.c @@ -284,7 +284,7 @@ anv_nir_apply_pipeline_layout(nir_shader *shader, var->data.binding, &state); var->data.driver_location = shader->num_uniforms + - image_index * BRW_IMAGE_PARAM_SIZE; + image_index * BRW_IMAGE_PARAM_SIZE * 4; } } @@ -310,7 +310,7 @@ anv_nir_apply_pipeline_layout(nir_shader *shader, } shader->num_uniforms += layout->stage[shader->stage].image_count * - BRW_IMAGE_PARAM_SIZE; + BRW_IMAGE_PARAM_SIZE * 4; } return state.progress; -- 2.30.2