Skip to content

aco: Fix invalid usage of std::fill with std::array.

Timur Kristóf requested to merge Venemo/mesa:aco-fix-std-fill into main

In this case std::array doesn't behave like a regular array, therefore it is NOT okay to index it outside the array, even though std::fill needs us to do so.

Change the syntax to do the same thing slightly differently, and add an assertion to make sure the registers are always within the array's bounds.

Merge request reports