summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-07-13 11:35:24 -0700
committerJason Ekstrand <[email protected]>2016-07-13 11:35:24 -0700
commit1eed753ee8725baf41790d30f94bc3567653c28c (patch)
tree728ea82c124502b5446feb76c8dd0519cd1ac869
parent0f7a6ea5e7b95cfe10dd5c176858ca078b36a197 (diff)
anv/pipeline: Assert that the number of uniforms from NIR fits
-rw-r--r--src/intel/vulkan/anv_pipeline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c
index 29747cf6c4a..3723423617b 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);
}