diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/cde_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/cde_gk20a.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c index 46568879..2c24db85 100644 --- a/drivers/gpu/nvgpu/gk20a/cde_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/cde_gk20a.c | |||
@@ -1036,7 +1036,8 @@ static int gk20a_buffer_convert_gpu_to_cde( | |||
1036 | WRITE_PATCH(PATCH_USER_CONST_YTILES, ytiles); | 1036 | WRITE_PATCH(PATCH_USER_CONST_YTILES, ytiles); |
1037 | WRITE_PATCH(PATCH_USER_CONST_BLOCKHEIGHTLOG2, block_height_log2); | 1037 | WRITE_PATCH(PATCH_USER_CONST_BLOCKHEIGHTLOG2, block_height_log2); |
1038 | WRITE_PATCH(PATCH_USER_CONST_DSTPITCH, dst_stride); | 1038 | WRITE_PATCH(PATCH_USER_CONST_DSTPITCH, dst_stride); |
1039 | WRITE_PATCH(PATCH_USER_CONST_DSTOFFSET, transpose ? 4 : 0); /* flag */ | 1039 | WRITE_PATCH(PATCH_USER_CONST_DSTOFFSET, |
1040 | (transpose ? 4 : 0) | g->cde_app.shader_parameter); | ||
1040 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_X, gridw); | 1041 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_X, gridw); |
1041 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_Y, gridh); | 1042 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_Y, gridh); |
1042 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_Z, 1); | 1043 | WRITE_PATCH(PATCH_VPC_CURRENT_GRID_SIZE_Z, 1); |
@@ -1208,6 +1209,8 @@ void gk20a_cde_debugfs_init(struct platform_device *dev) | |||
1208 | struct gk20a_platform *platform = platform_get_drvdata(dev); | 1209 | struct gk20a_platform *platform = platform_get_drvdata(dev); |
1209 | struct gk20a *g = get_gk20a(dev); | 1210 | struct gk20a *g = get_gk20a(dev); |
1210 | 1211 | ||
1212 | debugfs_create_u32("cde_parameter", S_IWUSR | S_IRUGO, | ||
1213 | platform->debugfs, &g->cde_app.shader_parameter); | ||
1211 | debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, | 1214 | debugfs_create_file("reload_cde_firmware", S_IWUSR, platform->debugfs, |
1212 | g, &gk20a_cde_reload_fops); | 1215 | g, &gk20a_cde_reload_fops); |
1213 | } | 1216 | } |