diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index 63a1a590..4c115e5f 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -1013,10 +1013,9 @@ static int gk20a_buffer_convert_gpu_to_cde( | |||
1013 | const int gridw = roundup(tilepitch, wgx) / wgx; | 1013 | const int gridw = roundup(tilepitch, wgx) / wgx; |
1014 | const int gridh = roundup(ytilesaligned, wgy) / wgy; | 1014 | const int gridh = roundup(ytilesaligned, wgy) / wgy; |
1015 | 1015 | ||
1016 | if (xtiles > 4096 / 8 || ytiles > 4096 / 8) { | 1016 | if (xtiles > 4096 / 8 || ytiles > 4096 / 8) |
1017 | gk20a_warn(&g->dev->dev, "cde: too large surface"); | 1017 | gk20a_warn(&g->dev->dev, "cde: surface is exceptionally large (xtiles=%d, ytiles=%d)", |
1018 | return -EINVAL; | 1018 | xtiles, ytiles); |
1019 | } | ||
1020 | 1019 | ||
1021 | gk20a_dbg(gpu_dbg_cde, "w=%d, h=%d, bh_log2=%d, compbits_offset=0x%llx", | 1020 | gk20a_dbg(gpu_dbg_cde, "w=%d, h=%d, bh_log2=%d, compbits_offset=0x%llx", |
1022 | width, height, block_height_log2, compbits_offset); | 1021 | width, height, block_height_log2, compbits_offset); |