summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/library/slang_core_gc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/library/slang_core_gc.h')
-rw-r--r--src/mesa/shader/slang/library/slang_core_gc.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/shader/slang/library/slang_core_gc.h b/src/mesa/shader/slang/library/slang_core_gc.h
index 9dd3a89342..3b1475a115 100644
--- a/src/mesa/shader/slang/library/slang_core_gc.h
+++ b/src/mesa/shader/slang/library/slang_core_gc.h
@@ -435,7 +435,7 @@
"\n"
"\n"
"void __operator += (inout float a, const float b) {\n"
-" __asm float_add a, b;\n"
+" __asm float_add a, a, b;\n"
"}\n"
"\n"
"void __operator -= (inout float a, const float b) {\n"
@@ -443,11 +443,11 @@
"}\n"
"\n"
"void __operator *= (inout float a, const float b) {\n"
-" __asm float_multiply a, b;\n"
+" __asm float_multiply a, a, b;\n"
"}\n"
"\n"
"void __operator /= (inout float a, const float b) {\n"
-" __asm float_divide a, b;\n"
+" __asm float_divide a, a, b;\n"
"}\n"
"\n"
"void __operator += (inout int x, const int y) {\n"
@@ -1309,8 +1309,8 @@
"\n"
"\n"
"float __operator - (const float a) {\n"
-" float c = a;\n"
-" __asm float_negate c;\n"
+" float c;\n"
+" __asm float_negate c, a;\n"
" return c;\n"
"}\n"
"\n"