projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b7fdce
)
ilo: update depth clear value for Gen8
author
Chia-I Wu
<olvaffe@gmail.com>
Mon, 26 Jan 2015 07:35:14 +0000
(15:35 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Wed, 11 Feb 2015 23:56:12 +0000
(07:56 +0800)
src/gallium/drivers/ilo/ilo_blitter_rectlist.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
b/src/gallium/drivers/ilo/ilo_blitter_rectlist.c
index f232f4202bfc63f959bd001524ec0447c6ae26a4..91cf7375c2ad711dea98702805f331b9bf5e1093 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_blitter_rectlist.c
+++ b/
src/gallium/drivers/ilo/ilo_blitter_rectlist.c
@@
-339,7
+339,10
@@
ilo_blitter_rectlist_clear_zs(struct ilo_blitter *blitter,
if (!hiz_can_clear_zs(blitter, tex))
return false;
- clear_value = util_pack_z(tex->layout.format, depth);
+ if (ilo_dev_gen(blitter->ilo->dev) >= ILO_GEN(8))
+ clear_value = fui(depth);
+ else
+ clear_value = util_pack_z(tex->layout.format, depth);
ilo_blit_resolve_surface(blitter->ilo, zs,
ILO_TEXTURE_RENDER_WRITE | ILO_TEXTURE_CLEAR);