st/va: fix post process dirty area handling
authorChristian König <christian.koenig@amd.com>
Mon, 23 Nov 2015 12:44:49 +0000 (13:44 +0100)
committerChristian König <christian.koenig@amd.com>
Tue, 24 Nov 2015 14:31:11 +0000 (15:31 +0100)
The dirty area in this call isn't related to the screen at all.

v2: set clear dirty area to false as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Julien Isorce <j.isorce@samsung.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/state_trackers/va/picture.c

index a37a9b791db9d03ad61ef68abf03bfaec5293a1c..4a4e7743fdeb3f601c84fddf779bc365eb818436 100644 (file)
@@ -722,7 +722,6 @@ handleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *context, v
 {
    struct u_rect src_rect;
    struct u_rect dst_rect;
-   struct u_rect *dirty_area;
    vlVaSurface *src_surface;
    VAProcPipelineParameterBuffer *pipeline_param;
    struct pipe_surface **surfaces;
@@ -763,12 +762,10 @@ handleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *context, v
    dst_rect.x1 = pipeline_param->output_region->x + pipeline_param->output_region->width;
    dst_rect.y1 = pipeline_param->output_region->y + pipeline_param->output_region->height;
 
-   dirty_area = drv->vscreen->get_dirty_area(drv->vscreen);
-
    vl_compositor_clear_layers(&drv->cstate);
    vl_compositor_set_buffer_layer(&drv->cstate, &drv->compositor, 0, src_surface->buffer, &src_rect, NULL, VL_COMPOSITOR_WEAVE);
    vl_compositor_set_layer_dst_area(&drv->cstate, 0, &dst_rect);
-   vl_compositor_render(&drv->cstate, &drv->compositor, psurf, dirty_area, true);
+   vl_compositor_render(&drv->cstate, &drv->compositor, psurf, NULL, false);
 
    screen->fence_reference(screen, &src_surface->fence, NULL);
    drv->pipe->flush(drv->pipe, &src_surface->fence, 0);