Commit 60f20a2f authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Support ABS and ABSNEG in ARB.

parent bdb54fda
...@@ -850,6 +850,14 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in ...@@ -850,6 +850,14 @@ static void shader_arb_get_src_param(const struct wined3d_shader_instruction *in
shader_addline(buffer, "RCP T%c, %s.w;\n", 'A' + tmpreg, regstr); shader_addline(buffer, "RCP T%c, %s.w;\n", 'A' + tmpreg, regstr);
shader_addline(buffer, "MUL T%c, %s, T%c;\n", 'A' + tmpreg, regstr, 'A' + tmpreg); shader_addline(buffer, "MUL T%c, %s, T%c;\n", 'A' + tmpreg, regstr, 'A' + tmpreg);
break; break;
case WINED3DSPSM_ABS:
shader_addline(buffer, "ABS T%c, %s;\n", 'A' + tmpreg, regstr);
break;
case WINED3DSPSM_ABSNEG:
shader_addline(buffer, "ABS T%c, %s;\n", 'A' + tmpreg, regstr);
sprintf(outregstr, "-T%c%s", 'A' + tmpreg, swzstr);
insert_line = 0;
break;
default: default:
sprintf(outregstr, "%s%s", regstr, swzstr); sprintf(outregstr, "%s%s", regstr, swzstr);
insert_line = 0; insert_line = 0;
......
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