Commit 08b8c5b2 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Fix atomics for raw thread group shared memory.

parent 849b16b8
......@@ -5405,7 +5405,7 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
{
shader_glsl_add_src_param(ins, &ins->src[0], coord_mask, &offset);
string_buffer_sprintf(address, "%s", offset.param_str);
if (reg_maps->uav_resource_info[resource_idx].flags & WINED3D_VIEW_BUFFER_RAW)
if (is_tgsm || (reg_maps->uav_resource_info[resource_idx].flags & WINED3D_VIEW_BUFFER_RAW))
shader_addline(address, "/ 4");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment