summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-07-15 15:32:53 -0600
committerBrian Paul <[email protected]>2008-07-15 16:41:19 -0600
commitb0d173f4053ee006717fb1c04cf12d1d687052e6 (patch)
tree387069f65e4f020ebf2a74e7292465042036887e /src/mesa/shader
parent8c653f6e093624bfdef47ca83728465c86f338b7 (diff)
mesa: fix some broken /= operators
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/slang/library/slang_core.gc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc
index 82828a826c0..0fd2b7e6b33 100644
--- a/src/mesa/shader/slang/library/slang_core.gc
+++ b/src/mesa/shader/slang/library/slang_core.gc
@@ -1226,6 +1226,7 @@ void __operator /= (inout int a, const int b)
float invB;
__asm float_rcp invB, b;
__asm vec4_multiply a, a, invB;
+ __asm float_to_int __retVal, a;
}
@@ -1518,7 +1519,7 @@ void __operator /= (inout vec2 v, const float a)
{
float invA;
__asm float_rcp invA, a;
- __asm vec4_multiply v.xy, v.xy, a.xx;
+ __asm vec4_multiply v.xy, v.xy, invA.xx;
}
@@ -1543,7 +1544,7 @@ void __operator /= (inout vec3 v, const float a)
{
float invA;
__asm float_rcp invA, a;
- __asm vec4_multiply v.xyz, v.xyz, a.xxx;
+ __asm vec4_multiply v.xyz, v.xyz, invA.xxx;
}
@@ -1568,7 +1569,7 @@ void __operator /= (inout vec4 v, const float a)
{
float invA;
__asm float_rcp invA, a;
- __asm vec4_multiply v, v, a.xxxx;
+ __asm vec4_multiply v, v, invA.xxxx;
}