OSDN Git Service

isl: Add missing break statement in array pitch calculation
authorChad Versace <chad.versace@intel.com>
Thu, 7 Jan 2016 19:07:44 +0000 (11:07 -0800)
committerChad Versace <chad.versace@intel.com>
Thu, 7 Jan 2016 19:08:12 +0000 (11:08 -0800)
Fixes regression in ed98c374bd3f1952fbab3031afaf5ff4d178ef41.

src/isl/isl.c

index 0e6f1e3..015b14e 100644 (file)
@@ -734,6 +734,7 @@ isl_calc_array_pitch_el_rows(const struct isl_device *dev,
       switch (array_pitch_span) {
       case ISL_ARRAY_PITCH_SPAN_COMPACT:
          pitch_sa_rows = isl_align_npot(phys_slice0_sa->h, image_align_sa->h);
+         break;
       case ISL_ARRAY_PITCH_SPAN_FULL: {
          /* The QPitch equation is found in the Broadwell PRM >> Volume 5:
           * Memory Views >> Common Surface Formats >> Surface Layout >> 2D