Mesa (master): i965/miptree: Store compression flag also for isl based

Topi Pohjolainen tpohjola at kemper.freedesktop.org
Fri Jul 21 21:14:59 UTC 2017


Module: Mesa
Branch: master
Commit: bbd89c195105d892cf0bd09710554bf124e5e881
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bbd89c195105d892cf0bd09710554bf124e5e881

Author: Topi Pohjolainen <topi.pohjolainen at intel.com>
Date:   Fri Jun 30 20:17:03 2017 +0300

i965/miptree: Store compression flag also for isl based

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>

---

 src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 8d55429b06..984529d883 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -842,6 +842,7 @@ make_surface(struct brw_context *brw, GLenum target, mesa_format format,
    mt->format = format;
    mt->aux_state = NULL;
    mt->cpp = isl_format_get_layout(mt->surf.format)->bpb / 8;
+   mt->compressed = _mesa_is_format_compressed(format);
 
    return mt;
 




More information about the mesa-commit mailing list