summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2016-10-12 18:16:47 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-18 19:46:15 -0500
commit911dcedb489ebef5758e5533f73e8653cc7770b7 (patch)
tree15a95a842f5a24af0a8d88c605c02b86d3ab4101 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent28fb1de00a907719a02cee62c7e7f3a0aee7075f (diff)
gpu: nvgpu: support t19x zbc
Added infrastructure for supporting new zbc features JIRA GV11B-9 Change-Id: Id8408348759488e8b0393dd89dd0faacfb111f01 Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: http://git-master/r/1235525 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index a78ff506..00a580dd 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -142,6 +142,9 @@ struct gpu_ops {
142 void (*set_zbc_depth_entry)(struct gk20a *g, 142 void (*set_zbc_depth_entry)(struct gk20a *g,
143 struct zbc_entry *depth_val, 143 struct zbc_entry *depth_val,
144 u32 index); 144 u32 index);
145 void (*set_zbc_s_entry)(struct gk20a *g,
146 struct zbc_entry *s_val,
147 u32 index);
145 void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr); 148 void (*init_cbc)(struct gk20a *g, struct gr_gk20a *gr);
146 void (*sync_debugfs)(struct gk20a *g); 149 void (*sync_debugfs)(struct gk20a *g);
147 void (*init_fs_state)(struct gk20a *g); 150 void (*init_fs_state)(struct gk20a *g);
@@ -223,13 +226,23 @@ struct gpu_ops {
223 struct zbc_entry *color_val, u32 index); 226 struct zbc_entry *color_val, u32 index);
224 int (*add_zbc_depth)(struct gk20a *g, struct gr_gk20a *gr, 227 int (*add_zbc_depth)(struct gk20a *g, struct gr_gk20a *gr,
225 struct zbc_entry *depth_val, u32 index); 228 struct zbc_entry *depth_val, u32 index);
229 int (*add_zbc_s)(struct gk20a *g, struct gr_gk20a *gr,
230 struct zbc_entry *s_val, u32 index);
226 int (*zbc_set_table)(struct gk20a *g, struct gr_gk20a *gr, 231 int (*zbc_set_table)(struct gk20a *g, struct gr_gk20a *gr,
227 struct zbc_entry *zbc_val); 232 struct zbc_entry *zbc_val);
228 int (*zbc_query_table)(struct gk20a *g, struct gr_gk20a *gr, 233 int (*zbc_query_table)(struct gk20a *g, struct gr_gk20a *gr,
229 struct zbc_query_params *query_params); 234 struct zbc_query_params *query_params);
235 int (*zbc_s_query_table)(struct gk20a *g, struct gr_gk20a *gr,
236 struct zbc_query_params *query_params);
237 int (*load_zbc_s_default_tbl)(struct gk20a *g,
238 struct gr_gk20a *gr);
239 int (*load_zbc_s_tbl)(struct gk20a *g,
240 struct gr_gk20a *gr);
230 void (*pmu_save_zbc)(struct gk20a *g, u32 entries); 241 void (*pmu_save_zbc)(struct gk20a *g, u32 entries);
231 int (*add_zbc)(struct gk20a *g, struct gr_gk20a *gr, 242 int (*add_zbc)(struct gk20a *g, struct gr_gk20a *gr,
232 struct zbc_entry *zbc_val); 243 struct zbc_entry *zbc_val);
244 bool (*add_zbc_type_s)(struct gk20a *g, struct gr_gk20a *gr,
245 struct zbc_entry *zbc_val, int *ret_val);
233 u32 (*pagepool_default_size)(struct gk20a *g); 246 u32 (*pagepool_default_size)(struct gk20a *g);
234 int (*init_ctx_state)(struct gk20a *g); 247 int (*init_ctx_state)(struct gk20a *g);
235 int (*alloc_gr_ctx)(struct gk20a *g, 248 int (*alloc_gr_ctx)(struct gk20a *g,