diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-01-18 14:02:08 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-22 18:29:54 -0500 |
commit | 193a2ed38ca51d898ac811820ab86237c84e18eb (patch) | |
tree | da672582c2322fc91c7b5c600deb5a60f3068a8d /drivers/gpu/nvgpu/gp106 | |
parent | f6d898656a6d7c197aa27ee53f5f0151fb6dfcf5 (diff) |
gpu: nvgpu: add sw method for SET_BES_CROP_DEBUG4
Added sw method support for SET_BES_CROP_DEBUG4.
In this sw method:
CLAMP_FP_BLEND_TO_MAXVAL forces overflow and
CLAMP_FP_BLEND_TO_INF blend results to clamp to FP maxval.
Added support for this sw method in gp10b/gp106/gv11b
and gv100.
Bug 2046636
Change-Id: I3a9e97587aca76718f7f504ea3b853f87409092a
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1641529
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/gr_gp106.c | 3 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/gr_gp106.c b/drivers/gpu/nvgpu/gp106/gr_gp106.c index 02cecf53..1bd24b45 100644 --- a/drivers/gpu/nvgpu/gp106/gr_gp106.c +++ b/drivers/gpu/nvgpu/gp106/gr_gp106.c | |||
@@ -110,6 +110,9 @@ int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr, | |||
110 | case NVC097_SET_BES_CROP_DEBUG3: | 110 | case NVC097_SET_BES_CROP_DEBUG3: |
111 | g->ops.gr.set_bes_crop_debug3(g, data); | 111 | g->ops.gr.set_bes_crop_debug3(g, data); |
112 | break; | 112 | break; |
113 | case NVC097_SET_BES_CROP_DEBUG4: | ||
114 | g->ops.gr.set_bes_crop_debug4(g, data); | ||
115 | break; | ||
113 | default: | 116 | default: |
114 | goto fail; | 117 | goto fail; |
115 | } | 118 | } |
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index bd02f914..68562955 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -368,6 +368,7 @@ static const struct gpu_ops gp106_ops = { | |||
368 | .init_preemption_state = NULL, | 368 | .init_preemption_state = NULL, |
369 | .update_boosted_ctx = NULL, | 369 | .update_boosted_ctx = NULL, |
370 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, | 370 | .set_bes_crop_debug3 = gr_gp10b_set_bes_crop_debug3, |
371 | .set_bes_crop_debug4 = gr_gp10b_set_bes_crop_debug4, | ||
371 | .create_gr_sysfs = NULL, | 372 | .create_gr_sysfs = NULL, |
372 | .set_ctxsw_preemption_mode = gr_gp106_set_ctxsw_preemption_mode, | 373 | .set_ctxsw_preemption_mode = gr_gp106_set_ctxsw_preemption_mode, |
373 | .load_ctxsw_ucode = gr_gm20b_load_ctxsw_ucode | 374 | .load_ctxsw_ucode = gr_gm20b_load_ctxsw_ucode |