../../src/gallium/drivers/r600/sfn/sfn_nir.cpp:458:59: error: ‘ATOMIC_COUNTER_SIZE’ was not declared in this scope
../../src/gallium/drivers/r600/sfn/sfn_shader.cpp:609:53: error: ‘ATOMIC_COUNTER_SIZE’ was not declared in this scope
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24824>
for (auto& [dummy, var] : sorted_var) {
auto iindex = binding_offset.find(var->data.binding);
- unsigned offset_update = var->type->atomic_size() / ATOMIC_COUNTER_SIZE;
+ unsigned offset_update = var->type->atomic_size() / 4; /* ATOMIC_COUNTER_SIZE */
if (iindex == binding_offset.end()) {
var->data.index = 0;
binding_offset[var->data.binding] = offset_update;
Shader::scan_uniforms(nir_variable *uniform)
{
if (uniform->type->contains_atomic()) {
- int natomics = uniform->type->atomic_size() / ATOMIC_COUNTER_SIZE;
+ int natomics = uniform->type->atomic_size() / 4; /* ATOMIC_COUNTER_SIZE */
m_nhwatomic += natomics;
if (uniform->type->is_array())