X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fauxiliary%2Futil%2Fu_pack_color.h;h=6eea87ef38c34a68010554515af68bd274dbbb3c;hb=1d367c3aa57da54f5dbd6871a38b9fc1d6cbcc45;hp=7b59538461a8db60b9e092954f953a71b1f2832d;hpb=ab081970e07d97c4218a68341d8534693d27e474;p=mesa.git diff --git a/src/gallium/auxiliary/util/u_pack_color.h b/src/gallium/auxiliary/util/u_pack_color.h index 7b59538461a..6eea87ef38c 100644 --- a/src/gallium/auxiliary/util/u_pack_color.h +++ b/src/gallium/auxiliary/util/u_pack_color.h @@ -430,7 +430,7 @@ util_pack_color(const float rgba[4], enum pipe_format format, union util_color * /* Handle other cases with a generic function. */ default: - util_format_write_4f(format, rgba, 0, uc, 0, 0, 0, 1, 1); + util_format_pack_rgba(format, uc, rgba, 1); } }