projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b1c516
)
ilo: OOM for HiZ is fatal on GEN6
author
Chia-I Wu
<olvaffe@gmail.com>
Tue, 14 Jan 2014 05:34:29 +0000
(13:34 +0800)
committer
Chia-I Wu
<olvaffe@gmail.com>
Tue, 14 Jan 2014 07:19:41 +0000
(15:19 +0800)
On GEN6, HiZ and Separate Stencil Buffer must be enabled at the same time.
src/gallium/drivers/ilo/ilo_resource.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/ilo/ilo_resource.c
b/src/gallium/drivers/ilo/ilo_resource.c
index 01d2d0853ecb2d6c22242264f8cdb2d0358b6c22..3ec8839eac5ba5d446595c77aed5f7811d03f07d 100644
(file)
--- a/
src/gallium/drivers/ilo/ilo_resource.c
+++ b/
src/gallium/drivers/ilo/ilo_resource.c
@@
-1192,8
+1192,13
@@
tex_create(struct pipe_screen *screen,
return NULL;
}
- if (layout.hiz)
- tex_create_hiz(tex, &layout);
+ if (layout.hiz && !tex_create_hiz(tex, &layout)) {
+ /* Separate Stencil Buffer requires HiZ to be enabled */
+ if (layout.dev->gen == ILO_GEN(6) && layout.separate_stencil) {
+ tex_destroy(tex);
+ return NULL;
+ }
+ }
return &tex->base;
}