Ensure that the GPU VA for a buffer is aligned correctly if
compression is enabled.
Bug
1605769
Change-Id: I12566ddd554da7cc9fb41dd553576c534ac96ba8
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/725767
gk20a_get_comptags(d, dmabuf, &comptags);
+ /* ensure alignment to compression page size if compression enabled */
+ if (bfr.ctag_offset)
+ mapping_size = ALIGN(mapping_size,
+ g->ops.fb.compression_page_size(g));
+
if (bfr.ctag_lines && !comptags.lines) {
/* allocate compression resources if needed */
err = gk20a_alloc_comptags(d, dmabuf, ctag_allocator,