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/gp106/hal_gp106.c | |
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/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 9052b4b2..dc3b7868 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP106 HAL interface | 2 | * GP106 HAL interface |
3 | * | 3 | * |
4 | * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2016-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"), |
@@ -281,6 +281,10 @@ static const struct gpu_ops gp106_ops = { | |||
281 | .detect_sm_arch = gr_gm20b_detect_sm_arch, | 281 | .detect_sm_arch = gr_gm20b_detect_sm_arch, |
282 | .add_zbc_color = gr_gp10b_add_zbc_color, | 282 | .add_zbc_color = gr_gp10b_add_zbc_color, |
283 | .add_zbc_depth = gr_gp10b_add_zbc_depth, | 283 | .add_zbc_depth = gr_gp10b_add_zbc_depth, |
284 | .get_gpcs_swdx_dss_zbc_c_format_reg = | ||
285 | gr_gp10b_get_gpcs_swdx_dss_zbc_c_format_reg, | ||
286 | .get_gpcs_swdx_dss_zbc_z_format_reg = | ||
287 | gr_gp10b_get_gpcs_swdx_dss_zbc_z_format_reg, | ||
284 | .zbc_set_table = gk20a_gr_zbc_set_table, | 288 | .zbc_set_table = gk20a_gr_zbc_set_table, |
285 | .zbc_query_table = gr_gk20a_query_zbc, | 289 | .zbc_query_table = gr_gk20a_query_zbc, |
286 | .pmu_save_zbc = gk20a_pmu_save_zbc, | 290 | .pmu_save_zbc = gk20a_pmu_save_zbc, |