diff options
author | Lauri Peltonen <lpeltonen@nvidia.com> | 2017-07-10 08:00:50 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-14 05:54:28 -0400 |
commit | d3415f27c465b057a828c51dba7d8c1f70f4d289 (patch) | |
tree | 83acf16739ef656c1bd1b8e95e4f4a650a6c8661 /drivers/gpu/nvgpu/include | |
parent | b1159ea6a19efdabe5205c654637f114e5f415bb (diff) |
gpu: nvgu: Support SET_BES_CROP_DEBUG3 sw method
The new SET_BES_CROP_DEBUG3 sw method is used to flip two fields
in the NV_PGRAPH_PRI_BES_CROP_DEBUG3 register. The sw method is
used by the user space driver to disable enough ROP optimizations
to maintain ZBC state of target tiles.
Bug 1942454
Change-Id: Id4e4d9d06c6c66080d06b6d4694546fe5cba8436
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1516202
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h | 24 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h | 24 |
2 files changed, 48 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h index 9b5a475e..d3f0e185 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp106/hw_gr_gp106.h | |||
@@ -3738,6 +3738,30 @@ static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void) | |||
3738 | { | 3738 | { |
3739 | return 0x1 << 31; | 3739 | return 0x1 << 31; |
3740 | } | 3740 | } |
3741 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void) | ||
3742 | { | ||
3743 | return 0x1 << 1; | ||
3744 | } | ||
3745 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void) | ||
3746 | { | ||
3747 | return 0x0; | ||
3748 | } | ||
3749 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void) | ||
3750 | { | ||
3751 | return 0x2; | ||
3752 | } | ||
3753 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void) | ||
3754 | { | ||
3755 | return 0x1 << 2; | ||
3756 | } | ||
3757 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void) | ||
3758 | { | ||
3759 | return 0x0; | ||
3760 | } | ||
3761 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void) | ||
3762 | { | ||
3763 | return 0x4; | ||
3764 | } | ||
3741 | static inline u32 gr_bes_crop_settings_r(void) | 3765 | static inline u32 gr_bes_crop_settings_r(void) |
3742 | { | 3766 | { |
3743 | return 0x00408958; | 3767 | return 0x00408958; |
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h index 4a87a629..a71f2c2b 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gp10b/hw_gr_gp10b.h | |||
@@ -3926,6 +3926,30 @@ static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void) | |||
3926 | { | 3926 | { |
3927 | return 0x1 << 31; | 3927 | return 0x1 << 31; |
3928 | } | 3928 | } |
3929 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void) | ||
3930 | { | ||
3931 | return 0x1 << 1; | ||
3932 | } | ||
3933 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void) | ||
3934 | { | ||
3935 | return 0x0; | ||
3936 | } | ||
3937 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void) | ||
3938 | { | ||
3939 | return 0x2; | ||
3940 | } | ||
3941 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void) | ||
3942 | { | ||
3943 | return 0x1 << 2; | ||
3944 | } | ||
3945 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void) | ||
3946 | { | ||
3947 | return 0x0; | ||
3948 | } | ||
3949 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void) | ||
3950 | { | ||
3951 | return 0x4; | ||
3952 | } | ||
3929 | static inline u32 gr_bes_crop_settings_r(void) | 3953 | static inline u32 gr_bes_crop_settings_r(void) |
3930 | { | 3954 | { |
3931 | return 0x00408958; | 3955 | return 0x00408958; |