util: Make all 3 fetch_rgba functions occupy the same function slot.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_test_format.c
index a5a1528c667214134bcdeae5fd5b7d7af43f498d..5facd85e3092a3bf2af72cbd50c56fde7e571f4b 100644 (file)
@@ -367,6 +367,8 @@ test_all(unsigned verbose, FILE *fp)
    for (use_cache = 0; use_cache < 2; use_cache++) {
       for (format = 1; format < PIPE_FORMAT_COUNT; ++format) {
          const struct util_format_description *format_desc;
+         const struct util_format_unpack_description *unpack =
+            util_format_unpack_description(format);
 
          format_desc = util_format_description(format);
          if (!format_desc) {
@@ -390,7 +392,7 @@ test_all(unsigned verbose, FILE *fp)
           * precompiled fetch func for any format before we write LLVM code to
           * fetch from it.
           */
-         if (!format_desc->fetch_rgba_float)
+         if (!unpack->fetch_rgba)
             continue;
 
          /* only test twice with formats which can use cache */