gpu: nvgpu: fix 4k compression

Add CPU dcache flush after populating scatterBuffer so that the GPU
will see the buffer contents.

Bug 1679453

Change-Id: I564394ed1fcff4d08d753e753bd3243b460d76df
Signed-off-by: Jussi Rasanen <jrasanen@nvidia.com>
Reviewed-on: http://git-master/r/805197
(cherry picked from commit d6a5513745aa77c84ac5408a62f72f24839ef439)
Reviewed-on: http://git-master/r/808246
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
Jussi Rasanen
2015-09-25 14:55:03 +03:00
committed by Terje Bergstrom
parent 8ed6ade94f
commit c6b8f46f6d

View File

@@ -1035,6 +1035,7 @@ __releases(&cde_app->mutex)
goto exit_unlock;
}
__cpuc_flush_dcache_area(scatter_buffer, scatterbuffer_size);
dma_buf_vunmap(compbits_scatter_buf, surface);
surface = NULL;
}