From: Jason Ekstrand Date: Fri, 11 Dec 2015 06:36:47 +0000 (-0800) Subject: anv/apply_pipeline_layout: Multiply uniform sizes by 4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bd0e25d41e3b5369889747fe683fe47abf1899c9;p=mesa.git anv/apply_pipeline_layout: Multiply uniform sizes by 4 This is because uniforms are now in terms of bytes everywhere. --- 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;