projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7824ab8
)
gallium/util: add a half float array to util_color
author
Marek Olšák
<maraeo@gmail.com>
Fri, 11 Jan 2013 15:45:54 +0000
(16:45 +0100)
committer
Marek Olšák
<maraeo@gmail.com>
Tue, 15 Jan 2013 20:48:49 +0000
(21:48 +0100)
For convenient packing into half floats.
src/gallium/auxiliary/util/u_pack_color.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_pack_color.h
b/src/gallium/auxiliary/util/u_pack_color.h
index 6c6d9669cbd661f20fa06b43d42b9dbb2c203d59..1f6a56a336d540f14fed86a1847772025d895f16 100644
(file)
--- a/
src/gallium/auxiliary/util/u_pack_color.h
+++ b/
src/gallium/auxiliary/util/u_pack_color.h
@@
-52,6
+52,7
@@
union util_color {
ubyte ub;
ushort us;
uint ui;
+ ushort h[4]; /* half float */
float f[4];
double d[4];
};