mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: enable stencil zbc
The implementation already exists. This change adds NVGPU_GR_ZBC_TYPE_STENCIL and plumbs through the stencil value from NvRmGpuDeviceZbcAddStencil through NVGPU_GPU_IOCTL_ZBC_SET_TABLE. Adds cases for querying the stencil values, enabling NvRmGpuDeviceZbcGetStencilTableEntry. Bug 3403523 Bug 3395601 Change-Id: I42c9a2967d0433e0bb08343aabeff0fe465f231e Signed-off-by: Pyarelal Knowles <pknowles@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2554963 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d90c5ed371
commit
99a664bda0
@@ -2307,6 +2307,10 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg
|
||||
nvgpu_gr_zbc_set_entry_depth(zbc_val,
|
||||
set_table_args->depth);
|
||||
break;
|
||||
case NVGPU_GR_ZBC_TYPE_STENCIL:
|
||||
nvgpu_gr_zbc_set_entry_stencil(zbc_val,
|
||||
set_table_args->stencil);
|
||||
break;
|
||||
default:
|
||||
err = -EINVAL;
|
||||
}
|
||||
@@ -2349,6 +2353,9 @@ long gk20a_ctrl_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg
|
||||
case NVGPU_GR_ZBC_TYPE_DEPTH:
|
||||
query_table_args->depth = zbc_tbl->depth;
|
||||
break;
|
||||
case NVGPU_GR_ZBC_TYPE_STENCIL:
|
||||
query_table_args->stencil = zbc_tbl->stencil;
|
||||
break;
|
||||
case NVGPU_GR_ZBC_TYPE_INVALID:
|
||||
query_table_args->index_size = zbc_tbl->index_size;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user