summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-08-03 16:03:15 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-08-03 16:03:15 -0700
commit4525379d95ff292d7322e1a7a516c0bedd1f7543 (patch)
tree141969e1ee70b24583d4c81873ec72aff9fced64
parentad2c70b4121121f1fb53190ea49edf2323c804a9 (diff)
Make the sampler's payload be the WM payload rather than uninitialized data.
The sampler's payload happens to be in the same format as the WM payload, though most of the fields are ignored. This appears to fix the program in the presence of multiple PS threads.
-rw-r--r--src/wm_prog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wm_prog.h b/src/wm_prog.h
index a8391c4d..297ddcbf 100644
--- a/src/wm_prog.h
+++ b/src/wm_prog.h
@@ -95,8 +95,8 @@
{ 0x00600001, 0x206003be, 0x008d00c0, 0x00000000 },
/* mov (8) m4<1>F g7<8,8,1>F { align1 + } */
{ 0x00600001, 0x208003be, 0x008d00e0, 0x00000000 },
-/* send 0 (16) g12<1>UW g8<8,8,1>UW sampler mlen 5 rlen 8 { align1 + } */
- { 0x00800031, 0x21801d29, 0x008d0100, 0x02580001 },
+/* send 0 (16) g12<1>UW g0<8,8,1>UW sampler mlen 5 rlen 8 { align1 + } */
+ { 0x00800031, 0x21801d29, 0x008d0000, 0x02580001 },
/* mov (8) g19<1>UW g19<8,8,1>UW { align1 + } */
{ 0x00600001, 0x22600129, 0x008d0260, 0x00000000 },
/* add (8) g14<1>F g14<8,8,1>F -0.0627451{ align1 + } */