wined3d: Fix atomics for raw thread group shared memory.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
849b16b820
commit
08b8c5b207
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue