mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
anv/pipeline: Assert that the number of uniforms from NIR fits
This commit is contained in:
parent
0f7a6ea5e7
commit
1eed753ee8
1 changed files with 1 additions and 0 deletions
|
|
@ -329,6 +329,7 @@ anv_pipeline_compile(struct anv_pipeline *pipeline,
|
||||||
/* If the shader uses any push constants at all, we'll just give
|
/* If the shader uses any push constants at all, we'll just give
|
||||||
* them the maximum possible number
|
* them the maximum possible number
|
||||||
*/
|
*/
|
||||||
|
assert(nir->num_uniforms <= MAX_PUSH_CONSTANTS_SIZE);
|
||||||
prog_data->nr_params += MAX_PUSH_CONSTANTS_SIZE / sizeof(float);
|
prog_data->nr_params += MAX_PUSH_CONSTANTS_SIZE / sizeof(float);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue