i965: Add SKL support to brw_miptree_get_horizontal_slice_pitch().
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 12 May 2015 13:10:07 +0000 (16:10 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 11 Aug 2015 12:07:38 +0000 (15:07 +0300)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_tex_layout.c

index c9ee5265a1d7d340a6347ebebc617cce9fa7fd20..b8b03932065dac3251545432742598604f5572bc 100644 (file)
@@ -432,9 +432,7 @@ brw_miptree_get_horizontal_slice_pitch(const struct brw_context *brw,
                                        const struct intel_mipmap_tree *mt,
                                        unsigned level)
 {
-   assert(brw->gen < 9);
-
-   if (mt->target == GL_TEXTURE_3D ||
+   if ((brw->gen < 9 && mt->target == GL_TEXTURE_3D) ||
        (brw->gen == 4 && mt->target == GL_TEXTURE_CUBE_MAP)) {
       return ALIGN(minify(mt->physical_width0, level), mt->align_w);
    } else {