fixes for proper stride for tiled buffers
[glsdk/omapdrmtest.git] / util / display-x11.c
index 758b08fb60ac50c270e4d3292f44d72c82162254..d63f5e8c179b1d7594631a26c01f86579b5b1bac 100644 (file)
@@ -110,7 +110,9 @@ get_vid_buffers(struct display *disp, uint32_t n,
 
                for (j = 0; dri2bufs[i].names[j]; j++) {
                        buf->bo[j] = omap_bo_from_name(disp->dev, dri2bufs[i].names[j]);
+                       buf->pitches[j] = dri2bufs[i].pitch[j];
                }
+
                buf->nbo = j;
 
                bufs[i] = buf;