nouveau: move interlaced assert down in nouveau_vp3_video_buffer_create
authorJulien Isorce <j.isorce@samsung.com>
Wed, 25 Nov 2015 08:17:34 +0000 (08:17 +0000)
committerJulien Isorce <j.isorce@samsung.com>
Wed, 25 Nov 2015 08:17:39 +0000 (08:17 +0000)
templat->interlaced is 0 if not NV12 which is the case currently
when using VPP.

Signed-off-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nouveau_vp3_video.c

index 4652e56c49adc1c6d0d06ed430bd1886e356a85e..d76d93241f4145da91f61b7b88a3b0399c59573d 100644 (file)
@@ -83,10 +83,10 @@ nouveau_vp3_video_buffer_create(struct pipe_context *pipe,
    struct pipe_sampler_view sv_templ;
    struct pipe_surface surf_templ;
 
-   assert(templat->interlaced);
    if (getenv("XVMC_VL") || templat->buffer_format != PIPE_FORMAT_NV12)
       return vl_video_buffer_create(pipe, templat);
 
+   assert(templat->interlaced);
    assert(templat->chroma_format == PIPE_VIDEO_CHROMA_FORMAT_420);
 
    buffer = CALLOC_STRUCT(nouveau_vp3_video_buffer);