tu: Fix static blend bandwidth calculation

We were never setting the valid bit, so would never happen. If it did
happen, we forgot to merge in the bandwidth calculation from child
libraries.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33902>
This commit is contained in:
Connor Abbott
2025-03-05 13:26:59 -05:00
committed by Marge Bot
parent c36cd32345
commit 413947e2de
+5
View File
@@ -2109,6 +2109,9 @@ tu_pipeline_builder_parse_libraries(struct tu_pipeline_builder *builder,
pipeline->prim_order = library->base.prim_order;
}
if (library->base.bandwidth.valid)
pipeline->bandwidth = library->base.bandwidth;
pipeline->set_state_mask |= library->base.set_state_mask;
u_foreach_bit (i, library->base.set_state_mask) {
@@ -2896,6 +2899,8 @@ tu_calc_bandwidth(struct tu_bandwidth *bandwidth,
vk_format_to_pipe_format(rp->stencil_attachment_format),
UTIL_FORMAT_COLORSPACE_ZS, 1) / 8;
}
bandwidth->valid = true;
}
/* Return true if the blend state reads the color attachments. */