aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTopi Pohjolainen <[email protected]>2017-06-22 20:56:47 +0300
committerTopi Pohjolainen <[email protected]>2017-07-20 11:32:21 +0300
commit8e1494f13993c5c1e260be4cd92398714de28e32 (patch)
tree4ba98a744ef6207b243e8075618a5e6648678ed0 /src
parentb95caac539c4b0cc98ab613e33b5405080cdeab8 (diff)
i965/miptree: Store chars-per-pixel even for isl based
This will significantly reduce chrun when switching remaaining surface types to isl. After the full transition it will be easier to calculate on-demand and drop the helper member in miptree. Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Topi Pohjolainen <[email protected]>
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;