On gen11+ AUX_HIZ is not a supported value for surfaces being
sampled by the 3D sampler.

Signed-off-by: Anuj Phogat <anuj.pho...@gmail.com>
---
 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c 
b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index f27d559149..9c6f166677 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -1912,9 +1912,10 @@ intel_miptree_sample_with_hiz(struct brw_context *brw,
    const struct gen_device_info *devinfo = &brw->screen->devinfo;
 
    /* It's unclear how well supported sampling from the hiz buffer is on GEN8,
-    * so keep things conservative for now and never enable it unless we're 
SKL+.
+    * so keep things conservative for now and never enable it unless we're 
GEN9+.
+    * Also, disable the sampling from the hiz buffer for GEN11+.
     */
-   if (devinfo->gen < 9) {
+   if (devinfo->gen < 9 || devinfo->gen > 10) {
       return false;
    }
 
-- 
2.13.6

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to