summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-01-09 17:33:51 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-10 11:47:07 -0500
commite9de95d7e0629c40b5ceb56c07de319bedd3339f (patch)
treed48300e7b5191f732eaa5105049c9e4bfc81f2e9 /drivers/gpu/nvgpu/gv100
parent0ac3ba2a99b745f577c752ebf9a6b4291730a36d (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/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index 9c847a55..e935b2e5 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GV100 Tegra HAL interface 2 * GV100 Tegra HAL interface
3 * 3 *
4 * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -314,6 +314,10 @@ static const struct gpu_ops gv100_ops = {
314 .detect_sm_arch = gr_gv11b_detect_sm_arch, 314 .detect_sm_arch = gr_gv11b_detect_sm_arch,
315 .add_zbc_color = gr_gp10b_add_zbc_color, 315 .add_zbc_color = gr_gp10b_add_zbc_color,
316 .add_zbc_depth = gr_gp10b_add_zbc_depth, 316 .add_zbc_depth = gr_gp10b_add_zbc_depth,
317 .get_gpcs_swdx_dss_zbc_c_format_reg =
318 gr_gv11b_get_gpcs_swdx_dss_zbc_c_format_reg,
319 .get_gpcs_swdx_dss_zbc_z_format_reg =
320 gr_gv11b_get_gpcs_swdx_dss_zbc_z_format_reg,
317 .zbc_set_table = gk20a_gr_zbc_set_table, 321 .zbc_set_table = gk20a_gr_zbc_set_table,
318 .zbc_query_table = gr_gk20a_query_zbc, 322 .zbc_query_table = gr_gk20a_query_zbc,
319 .pmu_save_zbc = gk20a_pmu_save_zbc, 323 .pmu_save_zbc = gk20a_pmu_save_zbc,