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:
committed by
Marge Bot
parent
e2b0086b78
commit
bbfca4eb92
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user