util/panfrost/glsl: rename BITSET_LAST_BIT to BITSET_LAST_BIT_SIZED

The current users all pass in the number of dwords, but I'd like
to provide an interface that doess ARRAY_SIZE implicitly.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9456>
This commit is contained in:
Dave Airlie
2021-03-09 11:17:17 +10:00
parent d978383966
commit 0e1afe7c70
3 changed files with 3 additions and 3 deletions

View File

@@ -134,7 +134,7 @@ update_array_sizes(struct gl_shader_program *prog, nir_variable *var,
_mesa_hash_table_search(referenced_uniforms[stage], var->name);
if (entry) {
ainfo = (struct uniform_array_info *) entry->data;
max_array_size = MAX2(BITSET_LAST_BIT(ainfo->indices, words),
max_array_size = MAX2(BITSET_LAST_BIT_SIZED(ainfo->indices, words),
max_array_size);
}