aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-11-08 14:56:07 -0800
committerMarge Bot <[email protected]>2020-02-04 19:02:59 +0000
commit1d367c3aa57da54f5dbd6871a38b9fc1d6cbcc45 (patch)
tree12824589d9dafbe19c8ef0ad27cfe2d54bd579c9 /src/gallium/auxiliary
parentab081970e07d97c4218a68341d8534693d27e474 (diff)
gallium: Refactor some single-pixel util_format_read/writes.
We can use the new row helpers to cut down on the noise. Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2744>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_pack_color.h2
1 files changed, 1 insertions, 1 deletions
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);
}
}