projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32bf722
)
etnaviv: Use the util_pack_color_union() helper.
author
Eric Anholt
<eric@anholt.net>
Wed, 1 Jul 2020 23:14:40 +0000
(16:14 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 7 Jul 2020 18:19:22 +0000
(18:19 +0000)
This snuck in since I cleaned up the other instances of it.
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
index 7b0da00c6b1427bfd759c41a0a05679e2ac4bde4..b878dc976abe8498f4f3a0d6c92b8cceb79bc746 100644
(file)
--- a/
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
+++ b/
src/gallium/drivers/etnaviv/etnaviv_clear_blit.c
@@
-73,13
+73,7
@@
etna_clear_blit_pack_rgba(enum pipe_format format, const union pipe_color_union
{
union util_color uc;
- if (util_format_is_pure_uint(format)) {
- util_format_write_4ui(format, color->ui, 0, &uc, 0, 0, 0, 1, 1);
- } else if (util_format_is_pure_sint(format)) {
- util_format_write_4i(format, color->i, 0, &uc, 0, 0, 0, 1, 1);
- } else {
- util_pack_color(color->f, format, &uc);
- }
+ util_pack_color_union(format, &uc, color);
switch (util_format_get_blocksize(format)) {
case 1: