From f3f14cdff53f4b936e2505d44aad6e3bca143056 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 17 Jan 2018 12:39:13 -0800 Subject: gpu: nvgpu: Fold T19x code back to main code paths Lots of code paths were split to T19x specific code paths and structs due to split repository. Now that repositories are merged, fold all of them back to main code paths and structs and remove the T19x specific Kconfig flag. Change-Id: Id0d17a5f0610fc0b49f51ab6664e716dc8b222b6 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1640606 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 6cc15c94..d1c32c03 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h @@ -24,10 +24,6 @@ #ifndef GR_GK20A_H #define GR_GK20A_H -#ifdef CONFIG_TEGRA_19x_GPU -#include "gr_t19x.h" -#endif - #include "gr_ctx_gk20a.h" #include "mm_gk20a.h" @@ -199,6 +195,12 @@ struct zbc_depth_table { u32 ref_cnt; }; +struct zbc_s_table { + u32 stencil; + u32 format; + u32 ref_cnt; +}; + struct zbc_entry { u32 color_ds[GK20A_ZBC_COLOR_VALUE_SIZE]; u32 color_l2[GK20A_ZBC_COLOR_VALUE_SIZE]; @@ -393,20 +395,14 @@ struct gr_gk20a { struct nvgpu_mutex zbc_lock; struct zbc_color_table zbc_col_tbl[GK20A_ZBC_TABLE_SIZE]; struct zbc_depth_table zbc_dep_tbl[GK20A_ZBC_TABLE_SIZE]; -#ifdef CONFIG_TEGRA_19x_GPU struct zbc_s_table zbc_s_tbl[GK20A_ZBC_TABLE_SIZE]; -#endif s32 max_default_color_index; s32 max_default_depth_index; -#ifdef CONFIG_TEGRA_19x_GPU s32 max_default_s_index; -#endif u32 max_used_color_index; u32 max_used_depth_index; -#ifdef CONFIG_TEGRA_19x_GPU u32 max_used_s_index; -#endif #define GR_CHANNEL_MAP_TLB_SIZE 2 /* must of power of 2 */ struct gr_channel_map_tlb_entry chid_tlb[GR_CHANNEL_MAP_TLB_SIZE]; -- cgit v1.2.2