freedreno: Make the slice pitch be bytes, not pixels.
[mesa.git] / src / gallium / drivers / freedreno / a5xx / fd5_blitter.c
index cffcae86a8b7d87dd9cbd10875a0721cc68c1a0c..bd4c35603f7557c53fd682179703823a8ab63fe7 100644 (file)
@@ -348,8 +348,8 @@ emit_blit(struct fd_ringbuffer *ring, const struct pipe_blit_info *info)
        sswap = fd5_pipe2swap(info->src.format);
        dswap = fd5_pipe2swap(info->dst.format);
 
-       spitch = sslice->pitch * src->layout.cpp;
-       dpitch = dslice->pitch * dst->layout.cpp;
+       spitch = sslice->pitch;
+       dpitch = dslice->pitch;
 
        /* if dtile, then dswap ignored by hw, and likewise if stile then sswap
         * ignored by hw.. but in this case we have already rejected the blit