diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index ceb606e4..c6a58fec 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -2467,7 +2467,8 @@ int gr_gk20a_init_ctx_state(struct gk20a *g) | |||
2467 | }; | 2467 | }; |
2468 | 2468 | ||
2469 | gk20a_dbg_fn(""); | 2469 | gk20a_dbg_fn(""); |
2470 | if (!g->gr.ctx_vars.golden_image_size) { | 2470 | /* query ctxsw image sizes, if golden context is not created */ |
2471 | if (!g->gr.ctx_vars.golden_image_initialized) { | ||
2471 | op.method.addr = | 2472 | op.method.addr = |
2472 | gr_fecs_method_push_adr_discover_image_size_v(); | 2473 | gr_fecs_method_push_adr_discover_image_size_v(); |
2473 | op.mailbox.ret = &g->gr.ctx_vars.golden_image_size; | 2474 | op.mailbox.ret = &g->gr.ctx_vars.golden_image_size; |