mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: fix setup_rop_mapping for gm20b+
gm20b_init_gr does not inherit the ops set by gk20a_init_gr_ops, and the gr.setup_rop_mapping HAL was not set there, so it was not set for chips that inherit from gm20b_init_gr and do not override it explicitly. Set the pointer in gm20b_init_gr, which other chips inherit, and delete the surrounding if condition from the call, making sure that future users always call it, because there is an implementation since the earliest supported chip. Bug 1833382 Change-Id: I7893c9aac7c5c49ce9a55031ea6baa9382a1b7ca Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1258960 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
committed by
Sri Krishna Chowdary
parent
0fbd9f9398
commit
5f6a2aa02b
@@ -1377,8 +1377,7 @@ int gr_gk20a_init_fs_state(struct gk20a *g)
|
||||
}
|
||||
|
||||
/* gr__setup_pd_mapping stubbed for gk20a */
|
||||
if (g->ops.gr.setup_rop_mapping)
|
||||
g->ops.gr.setup_rop_mapping(g, gr);
|
||||
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);
|
||||
|
||||
|
||||
@@ -1586,6 +1586,7 @@ void gm20b_init_gr(struct gpu_ops *gops)
|
||||
gops->gr.is_ltcn_ltss_addr = gr_gm20b_is_ltcn_ltss_addr;
|
||||
gops->gr.split_lts_broadcast_addr = gr_gm20b_split_lts_broadcast_addr;
|
||||
gops->gr.split_ltc_broadcast_addr = gr_gm20b_split_ltc_broadcast_addr;
|
||||
gops->gr.setup_rop_mapping = gr_gk20a_setup_rop_mapping;
|
||||
gops->gr.program_zcull_mapping = gr_gk20a_program_zcull_mapping;
|
||||
gops->gr.commit_global_timeslice = gr_gk20a_commit_global_timeslice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user