util: Make all 3 fetch_rgba functions occupy the same function slot.
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_format_aos.c
index 4d23047ada23ea6a12b961b213316ba6f721953a..aa99c2a7e2e11bf58b56e31eeb2b3b475a9a08e4 100644 (file)
@@ -897,7 +897,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
     * Fallback to util_format_description::fetch_rgba_float().
     */
 
-   if (unpack->fetch_rgba_float) {
+   if (unpack->fetch_rgba) {
       /*
        * Fallback to calling util_format_description::fetch_rgba_float.
        *
@@ -944,7 +944,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm,
          if (gallivm->cache)
             gallivm->cache->dont_cache = true;
          function = lp_build_const_func_pointer(gallivm,
-                                                func_to_pointer((func_pointer) unpack->fetch_rgba_float),
+                                                func_to_pointer((func_pointer) unpack->fetch_rgba),
                                                 ret_type,
                                                 arg_types, ARRAY_SIZE(arg_types),
                                                 format_desc->short_name);