mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
anv: return properly typed value for no ubo promoted
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: ff91c5ca42 ("anv: add analysis for push descriptor uses and store it in shader cache")
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20555>
This commit is contained in:
parent
e2b0086b78
commit
bbfca4eb92
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ anv_nir_push_desc_ubo_fully_promoted(nir_shader *nir,
|
|||
const struct anv_descriptor_set_layout *push_set_layout =
|
||||
anv_pipeline_layout_get_push_set(layout, &push_set);
|
||||
if (push_set_layout == NULL)
|
||||
return false;
|
||||
return 0;
|
||||
|
||||
uint32_t ubos_fully_promoted = 0;
|
||||
for (uint32_t b = 0; b < push_set_layout->binding_count; b++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue