wined3d: Add support for atomic min/max operations on 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
0046056527
commit
9b1748b05f
|
@ -5034,6 +5034,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
|
||||||
break;
|
break;
|
||||||
case WINED3DSIH_ATOMIC_IMAX:
|
case WINED3DSIH_ATOMIC_IMAX:
|
||||||
case WINED3DSIH_IMM_ATOMIC_IMAX:
|
case WINED3DSIH_IMM_ATOMIC_IMAX:
|
||||||
|
if (is_tgsm)
|
||||||
|
op = "atomicMax";
|
||||||
|
else
|
||||||
op = "imageAtomicMax";
|
op = "imageAtomicMax";
|
||||||
if (data_type != WINED3D_DATA_INT)
|
if (data_type != WINED3D_DATA_INT)
|
||||||
{
|
{
|
||||||
|
@ -5043,6 +5046,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
|
||||||
break;
|
break;
|
||||||
case WINED3DSIH_ATOMIC_IMIN:
|
case WINED3DSIH_ATOMIC_IMIN:
|
||||||
case WINED3DSIH_IMM_ATOMIC_IMIN:
|
case WINED3DSIH_IMM_ATOMIC_IMIN:
|
||||||
|
if (is_tgsm)
|
||||||
|
op = "atomicMin";
|
||||||
|
else
|
||||||
op = "imageAtomicMin";
|
op = "imageAtomicMin";
|
||||||
if (data_type != WINED3D_DATA_INT)
|
if (data_type != WINED3D_DATA_INT)
|
||||||
{
|
{
|
||||||
|
@ -5059,6 +5065,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
|
||||||
break;
|
break;
|
||||||
case WINED3DSIH_ATOMIC_UMAX:
|
case WINED3DSIH_ATOMIC_UMAX:
|
||||||
case WINED3DSIH_IMM_ATOMIC_UMAX:
|
case WINED3DSIH_IMM_ATOMIC_UMAX:
|
||||||
|
if (is_tgsm)
|
||||||
|
op = "atomicMax";
|
||||||
|
else
|
||||||
op = "imageAtomicMax";
|
op = "imageAtomicMax";
|
||||||
if (data_type != WINED3D_DATA_UINT)
|
if (data_type != WINED3D_DATA_UINT)
|
||||||
{
|
{
|
||||||
|
@ -5068,6 +5077,9 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins)
|
||||||
break;
|
break;
|
||||||
case WINED3DSIH_ATOMIC_UMIN:
|
case WINED3DSIH_ATOMIC_UMIN:
|
||||||
case WINED3DSIH_IMM_ATOMIC_UMIN:
|
case WINED3DSIH_IMM_ATOMIC_UMIN:
|
||||||
|
if (is_tgsm)
|
||||||
|
op = "atomicMin";
|
||||||
|
else
|
||||||
op = "imageAtomicMin";
|
op = "imageAtomicMin";
|
||||||
if (data_type != WINED3D_DATA_UINT)
|
if (data_type != WINED3D_DATA_UINT)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue