diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-11-11 08:14:34 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:12:17 -0400 |
commit | f6927096e902d179c70711ad2c8c0add1b98b310 (patch) | |
tree | 275a34912463f5bd966163728886b301fd7522d7 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 28f4e53e74e8ca93f59780167552db805b1da5c6 (diff) |
gpu: nvgpu: Add HAL for add ZBC color & depth
Turn add ZBC functions into HALs that can be filled per chip.
Bug 1567274
Change-Id: Ic6ef29d3353d4a0079ea0c80f513ffd579fe554f
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/601109
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 49038a0f..0bbc66cf 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -139,6 +139,10 @@ struct gpu_ops { | |||
139 | bool (*is_tpc_addr)(u32 addr); | 139 | bool (*is_tpc_addr)(u32 addr); |
140 | u32 (*get_tpc_num)(u32 addr); | 140 | u32 (*get_tpc_num)(u32 addr); |
141 | void (*detect_sm_arch)(struct gk20a *g); | 141 | void (*detect_sm_arch)(struct gk20a *g); |
142 | int (*add_zbc_color)(struct gk20a *g, struct gr_gk20a *gr, | ||
143 | struct zbc_entry *color_val, u32 index); | ||
144 | int (*add_zbc_depth)(struct gk20a *g, struct gr_gk20a *gr, | ||
145 | struct zbc_entry *depth_val, u32 index); | ||
142 | } gr; | 146 | } gr; |
143 | const char *name; | 147 | const char *name; |
144 | struct { | 148 | struct { |