summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index f32cd29d338..c2d5eafa510 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -798,6 +798,7 @@ make_surface(struct brw_context *brw, GLenum target, mesa_format format,
mt->target = target;
mt->format = format;
mt->aux_state = NULL;
+ mt->cpp = isl_format_get_layout(mt->surf.format)->bpb / 8;
return mt;