intel/compiler: Track mue_compaction and mue_header_packing flags in brw_get_compiler_config_value
v2: Use u_foreach_bit64. Suggested by Lionel.
Fixes: 48885c7fe3 ("intel/compiler: load debug mesh compaction options once")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26993>
This commit is contained in:
@@ -251,6 +251,8 @@ brw_get_compiler_config_value(const struct brw_compiler *compiler)
|
||||
bits++;
|
||||
insert_u64_bit(&config, compiler->lower_dpas);
|
||||
bits++;
|
||||
insert_u64_bit(&config, compiler->mesh.mue_compaction);
|
||||
bits++;
|
||||
|
||||
uint64_t mask = DEBUG_DISK_CACHE_MASK;
|
||||
bits += util_bitcount64(mask);
|
||||
@@ -264,6 +266,12 @@ brw_get_compiler_config_value(const struct brw_compiler *compiler)
|
||||
u_foreach_bit64(bit, mask)
|
||||
insert_u64_bit(&config, (intel_simd & (1ULL << bit)) != 0);
|
||||
|
||||
mask = 3;
|
||||
bits += util_bitcount64(mask);
|
||||
|
||||
u_foreach_bit64(bit, mask)
|
||||
insert_u64_bit(&config, (compiler->mesh.mue_header_packing & (1ULL << bit)) != 0);
|
||||
|
||||
assert(bits <= util_bitcount64(UINT64_MAX));
|
||||
|
||||
return config;
|
||||
|
||||
Reference in New Issue
Block a user