Commit 9b1748b0 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Add support for atomic min/max operations on thread group shared memory.

parent 00460565
......@@ -5034,6 +5034,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
break;
case WINED3DSIH_ATOMIC_IMAX:
case WINED3DSIH_IMM_ATOMIC_IMAX:
if (is_tgsm)
op = "atomicMax";
else
op = "imageAtomicMax";
if (data_type != WINED3D_DATA_INT)
{
......@@ -5043,6 +5046,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
break;
case WINED3DSIH_ATOMIC_IMIN:
case WINED3DSIH_IMM_ATOMIC_IMIN:
if (is_tgsm)
op = "atomicMin";
else
op = "imageAtomicMin";
if (data_type != WINED3D_DATA_INT)
{
......@@ -5059,6 +5065,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
break;
case WINED3DSIH_ATOMIC_UMAX:
case WINED3DSIH_IMM_ATOMIC_UMAX:
if (is_tgsm)
op = "atomicMax";
else
op = "imageAtomicMax";
if (data_type != WINED3D_DATA_UINT)
{
......@@ -5068,6 +5077,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
break;
case WINED3DSIH_ATOMIC_UMIN:
case WINED3DSIH_IMM_ATOMIC_UMIN:
if (is_tgsm)
op = "atomicMin";
else
op = "imageAtomicMin";
if (data_type != WINED3D_DATA_UINT)
{
......
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