[Mesa-dev] [PATCH 5/6] i965/gen8: Don't allocate hiz miptree structure
Jordan Justen
jordan.l.justen at intel.com
Tue Jul 1 16:53:07 PDT 2014
We now skip allocating a hiz miptree for gen8. Instead, we calculate
the required hiz buffer parameters and allocate a bo directly.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index b308b0c..e959b8c 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -1471,7 +1471,7 @@ intel_miptree_alloc_hiz(struct brw_context *brw,
{
assert(mt->hiz_buf == NULL);
- if (brw->gen == 7) {
+ if (brw->gen >= 7) {
mt->hiz_buf = intel_hiz_buf_create(brw, mt);
} else {
mt->hiz_buf = intel_hiz_miptree_buf_create(brw, mt);
--
2.0.0
More information about the mesa-dev
mailing list