summaryrefslogtreecommitdiffstats
path: root/src/gallium/tests/graw
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-04-03 21:15:13 -0700
committerZack Rusin <[email protected]>2013-04-04 12:09:55 -0700
commitbe9a42e980d9555f4f4c6c4a248dc269766085d9 (patch)
treebd5646fd300846b0d24ac857bc58a78a72fd3b92 /src/gallium/tests/graw
parent5db22494934779a3e7fb7669379d1693ff19d39f (diff)
llvmpipe: implement ucmp
and add a test for it Signed-off-by: Zack Rusin <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/tests/graw')
-rw-r--r--src/gallium/tests/graw/fragment-shader/frag-ucmp.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/tests/graw/fragment-shader/frag-ucmp.sh b/src/gallium/tests/graw/fragment-shader/frag-ucmp.sh
new file mode 100644
index 00000000000..fa4ea25d967
--- /dev/null
+++ b/src/gallium/tests/graw/fragment-shader/frag-ucmp.sh
@@ -0,0 +1,11 @@
+FRAG
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0]
+IMM[0] FLT32 { 10.0000, 1.0000, 0.0000, 0.0000}
+IMM[1] UINT32 {1, 0, 0, 0}
+0: MUL TEMP[0].x, IN[0].xxxx, IMM[0].xxxx
+1: F2U TEMP[0].x, TEMP[0].xxxx
+2: AND TEMP[0].x, TEMP[0].xxxx, IMM[1].xxxx
+3: UCMP OUT[0], TEMP[0].xxxx, IMM[0].yzzz, IMM[0].yyyz
+4: END