projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f7a6ea
)
anv/pipeline: Assert that the number of uniforms from NIR fits
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 13 Jul 2016 18:35:24 +0000
(11:35 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 13 Jul 2016 18:35:24 +0000
(11:35 -0700)
src/intel/vulkan/anv_pipeline.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_pipeline.c
b/src/intel/vulkan/anv_pipeline.c
index 29747cf6c4a43488df274ca69675c144e806bc73..3723423617bdb3448c454fbf1bfbe7237dad73d5 100644
(file)
--- 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);
}