wined3d: Use wined3d_mask_from_size() in shader_glsl_atomic().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-07-08 10:36:52 +02:00 committed by Alexandre Julliard
parent 420f86c2a5
commit bc70306dd2
1 changed files with 1 additions and 1 deletions

View File

@ -5354,7 +5354,7 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
}
resource = "image";
data_type = reg_maps->uav_resource_info[resource_idx].data_type;
coord_mask = (1u << resource_type_info[resource_type].coord_size) - 1;
coord_mask = wined3d_mask_from_size(resource_type_info[resource_type].coord_size);
stride = reg_maps->uav_resource_info[resource_idx].stride;
}