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:
parent
b95caac539
commit
8e1494f139
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue