isl_mat: keep track of the actual number of columns in a row
[platform/upstream/isl.git] / isl_mat.h
index 3671db1..ed82ec2 100644 (file)
--- a/isl_mat.h
+++ b/isl_mat.h
@@ -26,6 +26,9 @@ struct isl_mat {
 
        isl_int **row;
 
+       /* actual size of the rows in memory; n_col <= max_col */
+       unsigned max_col;
+
        struct isl_blk block;
 };