i965/miptree: Store compression flag also for isl based
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 30 Jun 2017 17:17:03 +0000 (20:17 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Fri, 21 Jul 2017 21:14:16 +0000 (00:14 +0300)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 8d55429b060099557b068343696c58ddc4f5a9e2..984529d883b20d24bbfb09e0bc6b49e6d40f47bd 100644 (file)
@@ -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;