mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: gp10b: Make CB size and default size same
We used to allocate 1.5x buffer size. This leads to memory waste, as we do not set the CB size via SW methods anymore. Bug 1686189 Change-Id: I45cbdeadc154f59b65138f99f50a72d97511cb78 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/801865 (cherry picked from commit 791f2fe03d16521206649ab90498443e91e284e2) Reviewed-on: http://git-master/r/815683
This commit is contained in:
committed by
Deepak Nibade
parent
f1fe07c123
commit
fa467827b7
@@ -269,10 +269,8 @@ static int gr_gp10b_calc_global_ctx_buffer_size(struct gk20a *g)
|
||||
struct gr_gk20a *gr = &g->gr;
|
||||
int size;
|
||||
|
||||
gr->attrib_cb_size = gr->attrib_cb_default_size
|
||||
+ (gr->attrib_cb_default_size >> 1);
|
||||
gr->alpha_cb_size = gr->alpha_cb_default_size
|
||||
+ (gr->alpha_cb_default_size >> 1);
|
||||
gr->attrib_cb_size = gr->attrib_cb_default_size;
|
||||
gr->alpha_cb_size = gr->alpha_cb_default_size;
|
||||
|
||||
gr->attrib_cb_size = min(gr->attrib_cb_size,
|
||||
gr_gpc0_ppc0_cbm_beta_cb_size_v_f(~0) / g->gr.tpc_count);
|
||||
|
||||
Reference in New Issue
Block a user