summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/cde.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/cde.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/cde.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/cde.c b/drivers/gpu/nvgpu/common/linux/cde.c
index 5063ba88..003da143 100644
--- a/drivers/gpu/nvgpu/common/linux/cde.c
+++ b/drivers/gpu/nvgpu/common/linux/cde.c
@@ -973,6 +973,10 @@ __releases(&l->cde_app->mutex)
973 struct gk20a *g = &l->g; 973 struct gk20a *g = &l->g;
974 struct gk20a_cde_ctx *cde_ctx = NULL; 974 struct gk20a_cde_ctx *cde_ctx = NULL;
975 struct gk20a_comptags comptags; 975 struct gk20a_comptags comptags;
976 struct nvgpu_os_buffer os_buf = {
977 compbits_scatter_buf,
978 dev_from_gk20a(g)
979 };
976 u64 mapped_compbits_offset = 0; 980 u64 mapped_compbits_offset = 0;
977 u64 compbits_size = 0; 981 u64 compbits_size = 0;
978 u64 mapped_scatterbuffer_offset = 0; 982 u64 mapped_scatterbuffer_offset = 0;
@@ -1103,7 +1107,7 @@ __releases(&l->cde_app->mutex)
1103 } 1107 }
1104 1108
1105 /* store source buffer compression tags */ 1109 /* store source buffer compression tags */
1106 gk20a_get_comptags(dev_from_gk20a(g), compbits_scatter_buf, &comptags); 1110 gk20a_get_comptags(&os_buf, &comptags);
1107 cde_ctx->surf_param_offset = comptags.offset; 1111 cde_ctx->surf_param_offset = comptags.offset;
1108 cde_ctx->surf_param_lines = comptags.lines; 1112 cde_ctx->surf_param_lines = comptags.lines;
1109 1113