summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/gr_gp106.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/gp106/gr_gp106.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/gp106/gr_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/gr_gp106.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/gr_gp106.c b/drivers/gpu/nvgpu/gp106/gr_gp106.c
index 8d8376d3..cbcb5981 100644
--- a/drivers/gpu/nvgpu/gp106/gr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/gr_gp106.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP106 GPU GR 2 * GP106 GPU GR
3 * 3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-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,
@@ -71,6 +71,9 @@ static int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr,
71 case NVC0C0_SET_SHADER_EXCEPTIONS: 71 case NVC0C0_SET_SHADER_EXCEPTIONS:
72 gk20a_gr_set_shader_exceptions(g, data); 72 gk20a_gr_set_shader_exceptions(g, data);
73 break; 73 break;
74 case NVC0C0_SET_RD_COALESCE:
75 gr_gm20b_set_rd_coalesce(g, data);
76 break;
74 default: 77 default:
75 goto fail; 78 goto fail;
76 } 79 }
@@ -90,6 +93,9 @@ static int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr,
90 case NVC097_SET_GO_IDLE_TIMEOUT: 93 case NVC097_SET_GO_IDLE_TIMEOUT:
91 gr_gp106_set_go_idle_timeout(g, data); 94 gr_gp106_set_go_idle_timeout(g, data);
92 break; 95 break;
96 case NVC097_SET_RD_COALESCE:
97 gr_gm20b_set_rd_coalesce(g, data);
98 break;
93 default: 99 default:
94 goto fail; 100 goto fail;
95 } 101 }