[Mesa-dev] [PATCH 07/33] intel/isl: Fix an assert in get_intratile_offset_sa

Jason Ekstrand jason at jlekstrand.net
Wed Aug 31 21:22:26 UTC 2016


---
 src/intel/isl/isl.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h
index 1ed286f..aa923c0 100644
--- a/src/intel/isl/isl.h
+++ b/src/intel/isl/isl.h
@@ -1432,7 +1432,7 @@ isl_tiling_get_intratile_offset_sa(const struct isl_device *dev,
     * surfaces.
     */
    assert(total_x_offset_sa % fmtl->bw == 0);
-   assert(total_y_offset_sa % fmtl->bw == 0);
+   assert(total_y_offset_sa % fmtl->bh == 0);
    const uint32_t total_x_offset = total_x_offset_sa / fmtl->bw;
    const uint32_t total_y_offset = total_y_offset_sa / fmtl->bh;
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list