llvmpipe: Changed known failures in lp_test_conv.
authorJames Benton <jbenton@vmware.com>
Fri, 18 May 2012 15:16:46 +0000 (16:16 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 21 May 2012 19:24:51 +0000 (20:24 +0100)
To comply with the recent fixes to lp_bld_conv.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_test_conv.c

index 2889350..307b8d9 100644 (file)
@@ -173,6 +173,15 @@ test_one(struct gallivm_state *gallivm, unsigned verbose,
       return TRUE;
    }
 
+   /* Known failures
+    * - fixed point 32 -> float 32
+    * - float 32 -> signed normalised integer 32
+    */
+   if ((src_type.floating && !dst_type.floating && dst_type.sign && dst_type.norm && src_type.width == dst_type.width) ||
+       (!src_type.floating && dst_type.floating && src_type.fixed && src_type.width == dst_type.width)) {
+      return TRUE;
+   }
+
    if(verbose >= 1)
       dump_conv_types(stdout, src_type, dst_type);
 
@@ -384,9 +393,6 @@ test_all(struct gallivm_state *gallivm, unsigned verbose, FILE *fp)
          if(src_type == dst_type)
             continue;
 
-         if(src_type->norm != dst_type->norm)
-            continue;
-
          if(!test_one(gallivm, verbose, fp, *src_type, *dst_type))
            success = FALSE;