diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-01-09 17:33:51 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-10 11:47:07 -0500 |
commit | e9de95d7e0629c40b5ceb56c07de319bedd3339f (patch) | |
tree | d48300e7b5191f732eaa5105049c9e4bfc81f2e9 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 0ac3ba2a99b745f577c752ebf9a6b4291730a36d (diff) |
gpu: nvgpu: use chip specific zbc_c/z format reg
Use chip specific gpcs_swdx_dss_zbc_c_format_reg
and gpcs_swdx_dss_zbc_z_format_reg. These registers
are different for gv11b/gv100 from gp10b/gp106.
Change-Id: I9e209c878a11edc986ba4304ff60fcccbb5087aa
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1635091
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index d9a8396f..a1c9c2bd 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) 2011-2017, NVIDIA CORPORATION. All rights reserved. | 2 | * Copyright (c) 2011-2018, NVIDIA CORPORATION. All rights reserved. |
3 | * | 3 | * |
4 | * GK20A Graphics | 4 | * GK20A Graphics |
5 | * | 5 | * |
@@ -437,6 +437,8 @@ struct gpu_ops { | |||
437 | unsigned long (*get_max_gfxp_wfi_timeout_count) | 437 | unsigned long (*get_max_gfxp_wfi_timeout_count) |
438 | (struct gk20a *g); | 438 | (struct gk20a *g); |
439 | void (*ecc_init_scrub_reg)(struct gk20a *g); | 439 | void (*ecc_init_scrub_reg)(struct gk20a *g); |
440 | u32 (*get_gpcs_swdx_dss_zbc_c_format_reg)(struct gk20a *g); | ||
441 | u32 (*get_gpcs_swdx_dss_zbc_z_format_reg)(struct gk20a *g); | ||
440 | } gr; | 442 | } gr; |
441 | struct { | 443 | struct { |
442 | void (*init_hw)(struct gk20a *g); | 444 | void (*init_hw)(struct gk20a *g); |