Mesa (master): anv/pipeline: Assert that the number of uniforms from NIR fits
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Wed Jul 13 18:44:46 UTC 2016
Module: Mesa
Branch: master
Commit: 1eed753ee8725baf41790d30f94bc3567653c28c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1eed753ee8725baf41790d30f94bc3567653c28c
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Wed Jul 13 11:35:24 2016 -0700
anv/pipeline: Assert that the number of uniforms from NIR fits
---
src/intel/vulkan/anv_pipeline.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 29747cf..3723423 100644
--- a/src/intel/vulkan/anv_pipeline.c
+++ b/src/intel/vulkan/anv_pipeline.c
@@ -329,6 +329,7 @@ anv_pipeline_compile(struct anv_pipeline *pipeline,
/* If the shader uses any push constants at all, we'll just give
* them the maximum possible number
*/
+ assert(nir->num_uniforms <= MAX_PUSH_CONSTANTS_SIZE);
prog_data->nr_params += MAX_PUSH_CONSTANTS_SIZE / sizeof(float);
}
More information about the mesa-commit
mailing list