Required to hit full occupancy. Now that this information is piped
through the compiler, we can do this correctly.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11733>
unsigned fau_count = DIV_ROUND_UP(info->push.count, 2);
rsd->preload.uniform_count = fau_count;
+ if (dev->arch == 7) {
+ rsd->properties.bifrost.shader_register_allocation =
+ (info->work_reg_count <= 32) ?
+ MALI_SHADER_REGISTER_ALLOCATION_32_PER_THREAD :
+ MALI_SHADER_REGISTER_ALLOCATION_64_PER_THREAD;
+ }
+
switch (info->stage) {
case MESA_SHADER_VERTEX:
rsd->preload.vertex.vertex_id = true;