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 <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
Topi Pohjolainen 2017-06-22 20:56:47 +03:00
parent b95caac539
commit 8e1494f139
1 changed files with 1 additions and 0 deletions

View File

@ -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;