diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2015-08-17 14:05:19 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-08-19 11:03:24 -0400 |
commit | 08f37cba39d846bc635098c4adae0c4a5629161a (patch) | |
tree | 2e6542081574210e869ca878a921a4c4a0e10013 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | a88e58cc9d2c4b9f852716240b3cabc9449d8679 (diff) |
gpu: nvgpu: Prepare for per-GPU CDE program numbers
Add gpu_ops for CDE, and add get_program_numbers function pointer for
determining horizontal and vertical CDE swizzler programs. This allows
different GPUs to have their own specific requirements for choosing
the CDE firmware programs.
Bug 1604102
Change-Id: Ib37c13abb017c8eb1c32adc8cbc6b5984488222e
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: http://git-master/r/784899
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 25712a64..5caef6fe 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -432,6 +432,11 @@ struct gpu_ops { | |||
432 | void (*show_dump)(struct gk20a *g, | 432 | void (*show_dump)(struct gk20a *g, |
433 | struct gk20a_debug_output *o); | 433 | struct gk20a_debug_output *o); |
434 | } debug; | 434 | } debug; |
435 | struct { | ||
436 | void (*get_program_numbers)(struct gk20a *g, | ||
437 | u32 block_height_log2, | ||
438 | int *hprog, int *vprog); | ||
439 | } cde; | ||
435 | }; | 440 | }; |
436 | 441 | ||
437 | struct gk20a { | 442 | struct gk20a { |