Commit 387a6323 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Implement global resource memory barriers.

parent fbad62fd
......@@ -5729,6 +5729,12 @@ static void shader_glsl_sync(const struct wined3d_shader_instruction *ins)
sync_flags &= ~WINED3DSSF_GROUP_SHARED_MEMORY;
}
if (sync_flags & WINED3DSSF_GLOBAL_UAV)
{
shader_addline(buffer, "memoryBarrier();\n");
sync_flags &= ~WINED3DSSF_GLOBAL_UAV;
}
if (sync_flags)
FIXME("Unhandled sync flags %#x.\n", sync_flags);
}
......
......@@ -1910,6 +1910,11 @@ static void shader_dump_global_flags(struct wined3d_string_buffer *buffer, DWORD
static void shader_dump_sync_flags(struct wined3d_string_buffer *buffer, DWORD sync_flags)
{
if (sync_flags & WINED3DSSF_GLOBAL_UAV)
{
shader_addline(buffer, "_uglobal");
sync_flags &= ~WINED3DSSF_GLOBAL_UAV;
}
if (sync_flags & WINED3DSSF_GROUP_SHARED_MEMORY)
{
shader_addline(buffer, "_g");
......
......@@ -656,6 +656,7 @@ enum wined3d_shader_sync_flags
{
WINED3DSSF_THREAD_GROUP = 0x1,
WINED3DSSF_GROUP_SHARED_MEMORY = 0x2,
WINED3DSSF_GLOBAL_UAV = 0x8,
};
enum wined3d_shader_uav_flags
......
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