[Mesa-dev] [PATCH 21/27] i965: Make CCS stride match kernel's expectations

Ben Widawsky benjamin.widawsky at intel.com
Thu Dec 1 22:10:02 UTC 2016


From: Ben Widawsky <ben at bwidawsk.net>

Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Jason Ekstrand <jason at jlekstrand.net>
Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
---
 src/mesa/drivers/dri/i965/intel_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index f40761a..7ee21ee 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -961,7 +961,7 @@ intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate)
     if (parent == NULL || parent->planar_format == NULL) {
        if (is_aux) {
           offset = parent->aux_offset;
-          stride = ALIGN(parent->pitch / 32, 128);
+          stride = ALIGN(parent->pitch / 64, 128);
           dri_format = parent->dri_format;
           goto done;
        }
-- 
2.10.2



More information about the mesa-dev mailing list