diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-12-14 17:43:42 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-05 12:13:30 -0500 |
commit | ea5a2147229e32f0524827af82cb7a880aca6296 (patch) | |
tree | 57502c753df7efec4924f9969eb2aebca347c304 /drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | |
parent | 5711e2b1f7c3a34444c654e7a3bf0a6f8201ef03 (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/gm20b/hw_gr_gm20b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h index 68b5a6d4..9f7fea45 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * This program is free software; you can redistribute it and/or modify it | 4 | * This program is free software; you can redistribute it and/or modify it |
5 | * under the terms and conditions of the GNU General Public License, | 5 | * under the terms and conditions of the GNU General Public License, |
@@ -2254,6 +2254,18 @@ static inline u32 gr_gpc0_ppc0_cbm_alpha_cb_offset_r(void) | |||
2254 | { | 2254 | { |
2255 | return 0x005030f8; | 2255 | return 0x005030f8; |
2256 | } | 2256 | } |
2257 | static inline u32 gr_gpcs_tpcs_tex_m_dbg2_r(void) | ||
2258 | { | ||
2259 | return 0x00419a3c; | ||
2260 | } | ||
2261 | static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_f(u32 v) | ||
2262 | { | ||
2263 | return (v & 0x1) << 2; | ||
2264 | } | ||
2265 | static inline u32 gr_gpcs_tpcs_tex_m_dbg2_lg_rd_coalesce_en_m(void) | ||
2266 | { | ||
2267 | return 0x1 << 2; | ||
2268 | } | ||
2257 | static inline u32 gr_gpccs_falcon_addr_r(void) | 2269 | static inline u32 gr_gpccs_falcon_addr_r(void) |
2258 | { | 2270 | { |
2259 | return 0x0041a0ac; | 2271 | return 0x0041a0ac; |