isl: Stop multiplying height by block size
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 8 Jul 2016 21:57:19 +0000 (14:57 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 13 Jul 2016 18:47:37 +0000 (11:47 -0700)
commit0d48ac627a5a6021a8c40504937f910bf5b765a8
treebfbba90740fa4364b7071f3a8695a88450199988
parent58c1b1088bdffe38f2f80fff4bd07708aa22e0c7
isl: Stop multiplying height by block size

The row pitch already specifies the size of a row of elements.
Multiplying by the block height simply causes us to allocate as muc as 12
times more memory than needed for compressed textures.

Reviewed-by: Chad Versace <chad.versace@intel.com>
src/intel/isl/isl.c