diff options
-rw-r--r-- | src/intel/isl/isl_gen9.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/isl/isl_gen9.c b/src/intel/isl/isl_gen9.c index cbbbba66272..da8c7491290 100644 --- a/src/intel/isl/isl_gen9.c +++ b/src/intel/isl/isl_gen9.c @@ -174,7 +174,7 @@ gen9_choose_image_alignment_el(const struct isl_device *dev, return; } - if (info->dim == ISL_SURF_DIM_1D) { + if (dim_layout == ISL_DIM_LAYOUT_GEN9_1D) { /* See the Skylake BSpec > Memory Views > Common Surface Formats > Surface * Layout and Tiling > 1D Surfaces > 1D Alignment Requirements. */ |