projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1433a2d
)
util: Handle FORMAT_Z32_FLOAT in util_pack_z().
author
Michal Krol
<michal@vmware.com>
Fri, 15 Jan 2010 16:43:04 +0000
(17:43 +0100)
committer
Michal Krol
<michal@vmware.com>
Fri, 15 Jan 2010 18:00:15 +0000
(19:00 +0100)
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
43eb015
..
0ab53c7
100644
(file)
--- a/
src/gallium/auxiliary/util/u_pack_color.h
+++ b/
src/gallium/auxiliary/util/u_pack_color.h
@@
-425,6
+425,8
@@
util_pack_z(enum pipe_format format, double z)
if (z == 1.0)
return 0xffffffff;
return (uint) (z * 0xffffffff);
+ case PIPE_FORMAT_Z32_FLOAT:
+ return (uint)z;
case PIPE_FORMAT_S8Z24_UNORM:
case PIPE_FORMAT_X8Z24_UNORM:
if (z == 1.0)