mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: setup chip specific rop mapping
Add support for setting-up chip specific rop mapping. JIRA GV11B-21 Change-Id: If94f0de7d767f572095602a831ad6be4b764fff4 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: http://git-master/r/1234547 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f5069622bb
commit
de17750cf9
@@ -302,6 +302,7 @@ struct gpu_ops {
|
||||
void (*program_sm_id_numbering)(struct gk20a *g,
|
||||
u32 gpc, u32 tpc, u32 smid);
|
||||
void (*program_active_tpc_counts)(struct gk20a *g, u32 gpc);
|
||||
int (*setup_rop_mapping)(struct gk20a *g, struct gr_gk20a *gr);
|
||||
} gr;
|
||||
const char *name;
|
||||
struct {
|
||||
|
||||
@@ -1363,7 +1363,8 @@ int gr_gk20a_init_fs_state(struct gk20a *g)
|
||||
}
|
||||
|
||||
/* gr__setup_pd_mapping stubbed for gk20a */
|
||||
gr_gk20a_setup_rop_mapping(g, gr);
|
||||
if (g->ops.gr.setup_rop_mapping)
|
||||
g->ops.gr.setup_rop_mapping(g, gr);
|
||||
if (g->ops.gr.setup_alpha_beta_tables)
|
||||
g->ops.gr.setup_alpha_beta_tables(g, gr);
|
||||
|
||||
@@ -9055,4 +9056,5 @@ void gk20a_init_gr_ops(struct gpu_ops *gops)
|
||||
gr_gk20a_split_lts_broadcast_addr_stub;
|
||||
gops->gr.split_ltc_broadcast_addr =
|
||||
gr_gk20a_split_ltc_broadcast_addr_stub;
|
||||
gops->gr.setup_rop_mapping = gr_gk20a_setup_rop_mapping;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user