summaryrefslogtreecommitdiff
path: root/src/sna/sna_video.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_video.c')
-rw-r--r--src/sna/sna_video.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_video.c b/src/sna/sna_video.c
index ebcf48da..d5b9c0f0 100644
--- a/src/sna/sna_video.c
+++ b/src/sna/sna_video.c
@@ -200,6 +200,10 @@ sna_video_frame_init(struct sna *sna,
{
int align;
+ DBG(("%s: id=%d [planar? %d], width=%d, height=%d, align=%d\n",
+ __FUNCTION__, id, is_planar_fourcc(id), width, height, video->alignment));
+ assert(width && height);
+
frame->bo = NULL;
frame->id = id;
frame->width = width;
@@ -212,7 +216,6 @@ sna_video_frame_init(struct sna *sna,
align = 1024;
#endif
-
/* Determine the desired destination pitch (representing the chroma's pitch,
* in the planar case.
*/