diff options
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/cde_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/cde_gm20b.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/cde_gm20b.c b/drivers/gpu/nvgpu/os/linux/cde_gm20b.c index 1cd15c54..7f71b740 100644 --- a/drivers/gpu/nvgpu/os/linux/cde_gm20b.c +++ b/drivers/gpu/nvgpu/os/linux/cde_gm20b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GM20B CDE | 2 | * GM20B CDE |
3 | * | 3 | * |
4 | * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2015-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -35,10 +35,10 @@ enum programs { | |||
35 | PROG_PASSTHROUGH = 6, | 35 | PROG_PASSTHROUGH = 6, |
36 | }; | 36 | }; |
37 | 37 | ||
38 | static void gm20b_cde_get_program_numbers(struct gk20a *g, | 38 | void gm20b_cde_get_program_numbers(struct gk20a *g, |
39 | u32 block_height_log2, | 39 | u32 block_height_log2, |
40 | u32 shader_parameter, | 40 | u32 shader_parameter, |
41 | int *hprog_out, int *vprog_out) | 41 | int *hprog_out, int *vprog_out) |
42 | { | 42 | { |
43 | int hprog = PROG_HPASS; | 43 | int hprog = PROG_HPASS; |
44 | int vprog = (block_height_log2 >= 2) ? | 44 | int vprog = (block_height_log2 >= 2) ? |
@@ -56,9 +56,3 @@ static void gm20b_cde_get_program_numbers(struct gk20a *g, | |||
56 | *hprog_out = hprog; | 56 | *hprog_out = hprog; |
57 | *vprog_out = vprog; | 57 | *vprog_out = vprog; |
58 | } | 58 | } |
59 | |||
60 | struct nvgpu_os_linux_ops gm20b_cde_ops = { | ||
61 | .cde = { | ||
62 | .get_program_numbers = gm20b_cde_get_program_numbers, | ||
63 | }, | ||
64 | }; | ||