[Mesa-dev] [PATCH] i965: correct alignment units for 2D compressed textures on Skylake

Nanley Chery nanleychery at gmail.com
Mon Jun 15 09:44:36 PDT 2015


Although most of the patch is incorrect, the following change is still
necessary isn't it?
        if (mt->compressed) {
           mip1_width = ALIGN(minify(mt->physical_width0, 1), mt->align_w) +
-             ALIGN(minify(mt->physical_width0, 2), bw);
+             ALIGN(minify(mt->physical_width0, 2), mt->align_w);

Each LOD is aligned by the alignment term. I don't see why we're
switching to block width here.

- Nanley


More information about the mesa-dev mailing list