From b012d50d9b33cdda5872002586468a2eb23ab046 Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Wed, 5 Aug 2020 17:32:35 -0700 Subject: [PATCH] gpu: nvgpu: remove zbc stencil ioctl query Currently, ctrl ioctl NVGPU_GPU_IOCTL_ZBC_QUERY_TABLE or NVGPU_GPU_IOCTL_ZBC_SET_TABLE for stencil type, nvgpu returns value for depth instead. Remove NVGPU_GR_ZBC_TYPE_STENCIL case from both ctrl ioctls. Bug 3077459 Change-Id: I394344e9b80c05df72d8f7e0a79371966c9aea4c Signed-off-by: Vedashree Vidwans Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2394948 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c index bad8490e7..3d9a289f0 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_ctrl.c @@ -1857,7 +1857,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg } break; case NVGPU_GR_ZBC_TYPE_DEPTH: - case NVGPU_GR_ZBC_TYPE_STENCIL: nvgpu_gr_zbc_set_entry_depth(zbc_val, set_table_args->depth); break; @@ -1898,7 +1897,6 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg } break; case NVGPU_GR_ZBC_TYPE_DEPTH: - case NVGPU_GR_ZBC_TYPE_STENCIL: query_table_args->depth = zbc_tbl->depth; break; case NVGPU_GR_ZBC_TYPE_INVALID: