diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/cde_gp10b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/cde_gp10b.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c index 685ddbc4..1ddbcba6 100644 --- a/drivers/gpu/nvgpu/gp10b/cde_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/cde_gp10b.c | |||
@@ -32,17 +32,18 @@ enum gp10b_programs { | |||
32 | 32 | ||
33 | void gp10b_cde_get_program_numbers(struct gk20a *g, | 33 | void gp10b_cde_get_program_numbers(struct gk20a *g, |
34 | u32 block_height_log2, | 34 | u32 block_height_log2, |
35 | u32 shader_parameter, | ||
35 | int *hprog_out, int *vprog_out) | 36 | int *hprog_out, int *vprog_out) |
36 | { | 37 | { |
37 | int hprog, vprog; | 38 | int hprog, vprog; |
38 | 39 | ||
39 | if (g->cde_app.shader_parameter == 1) { | 40 | if (shader_parameter == 1) { |
40 | hprog = GP10B_PROG_PASSTHROUGH; | 41 | hprog = GP10B_PROG_PASSTHROUGH; |
41 | vprog = GP10B_PROG_PASSTHROUGH; | 42 | vprog = GP10B_PROG_PASSTHROUGH; |
42 | } else { | 43 | } else { |
43 | hprog = GP10B_PROG_HPASS; | 44 | hprog = GP10B_PROG_HPASS; |
44 | vprog = GP10B_PROG_VPASS; | 45 | vprog = GP10B_PROG_VPASS; |
45 | if (g->cde_app.shader_parameter == 2) { | 46 | if (shader_parameter == 2) { |
46 | hprog = GP10B_PROG_HPASS_DEBUG; | 47 | hprog = GP10B_PROG_HPASS_DEBUG; |
47 | vprog = GP10B_PROG_VPASS_DEBUG; | 48 | vprog = GP10B_PROG_VPASS_DEBUG; |
48 | } | 49 | } |