summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-12-14 17:43:42 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-05 12:13:30 -0500
commitea5a2147229e32f0524827af82cb7a880aca6296 (patch)
tree57502c753df7efec4924f9969eb2aebca347c304 /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parent5711e2b1f7c3a34444c654e7a3bf0a6f8201ef03 (diff)
gpu: nvgpu: Implement SET_RD_COALESCE
Implement SW method SET_RD_COALESCE to implement correct handling of texture read coalescing. Bug 200223870 Change-Id: Icd6f987b72d78e5add4076fc550e2070eba70628 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1271303 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index 9de7d675..45820c5c 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP10B GPU GR 2 * GP10B GPU GR
3 * 3 *
4 * Copyright (c) 2015-2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -629,6 +629,9 @@ static int gr_gp10b_handle_sw_method(struct gk20a *g, u32 addr,
629 case NVC0C0_SET_SHADER_EXCEPTIONS: 629 case NVC0C0_SET_SHADER_EXCEPTIONS:
630 gk20a_gr_set_shader_exceptions(g, data); 630 gk20a_gr_set_shader_exceptions(g, data);
631 break; 631 break;
632 case NVC0C0_SET_RD_COALESCE:
633 gr_gm20b_set_rd_coalesce(g, data);
634 break;
632 default: 635 default:
633 goto fail; 636 goto fail;
634 } 637 }
@@ -651,6 +654,9 @@ static int gr_gp10b_handle_sw_method(struct gk20a *g, u32 addr,
651 case NVC097_SET_COALESCE_BUFFER_SIZE: 654 case NVC097_SET_COALESCE_BUFFER_SIZE:
652 gr_gp10b_set_coalesce_buffer_size(g, data); 655 gr_gp10b_set_coalesce_buffer_size(g, data);
653 break; 656 break;
657 case NVC097_SET_RD_COALESCE:
658 gr_gm20b_set_rd_coalesce(g, data);
659 break;
654 default: 660 default:
655 goto fail; 661 goto fail;
656 } 662 }