summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/library/slang_core.gc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/library/slang_core.gc')
-rwxr-xr-xsrc/mesa/shader/slang/library/slang_core.gc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc
index 558ca5440f..fdba7c636d 100755
--- a/src/mesa/shader/slang/library/slang_core.gc
+++ b/src/mesa/shader/slang/library/slang_core.gc
@@ -17,8 +17,8 @@
// a list of zero or more source variable identifiers. A variable identifier is a variable name
// declared earlier in the code (as a function parameter, local or global variable).
// An instruction name designates an instruction that must be exported by the implementation.
-// Each instruction receives data from destination and source variable identifiers and returns
-// data in the destination variable identifier.
+// Each instruction receives data from source variable identifiers and returns data in the
+// destination variable identifier.
//
// It is up to the implementation how to define a particular operator or constructor. If it is
// expected to being used rarely, it can be defined in terms of other operators and constructors,
@@ -435,7 +435,7 @@ void __operator = (out mat4 m, const mat4 n) {
//
void __operator += (inout float a, const float b) {
- __asm float_add a, b;
+ __asm float_add a, a, b;
}
void __operator -= (inout float a, const float b) {
@@ -443,11 +443,11 @@ void __operator -= (inout float a, const float b) {
}
void __operator *= (inout float a, const float b) {
- __asm float_multiply a, b;
+ __asm float_multiply a, a, b;
}
void __operator /= (inout float a, const float b) {
- __asm float_divide a, b;
+ __asm float_divide a, a, b;
}
void __operator += (inout int x, const int y) {
@@ -1309,8 +1309,8 @@ mat4 __operator * (const mat4 m, const mat4 n) {
//
float __operator - (const float a) {
- float c = a;
- __asm float_negate c;
+ float c;
+ __asm float_negate c, a;
return c;
}
@@ -1740,4 +1740,4 @@ bool __operator ^^ (const bool a, const bool b) {
bool __operator ! (const bool a) {
return a == false;
}
-
+