diff options
author | Lauri Peltonen <lpeltonen@nvidia.com> | 2017-07-10 08:06:31 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-14 05:54:35 -0400 |
commit | 2272cedfbacf271a0faacfd054240fea3027423d (patch) | |
tree | daed0c86be3ef5bb2ebb73ded95d66c301a8d85c /drivers/gpu/nvgpu/include | |
parent | 4074484f756734d9f1902944dc80966f3659bb39 (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: I3109fb4120674b15db4998693d0aa65bf0c3c8b5
Signed-off-by: Lauri Peltonen <lpeltonen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1516205
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h index 53dc7c87..c9dbee52 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |||
@@ -3918,6 +3918,30 @@ static inline u32 gr_bes_crop_debug3_comp_vdc_4to2_disable_m(void) | |||
3918 | { | 3918 | { |
3919 | return 0x1 << 31; | 3919 | return 0x1 << 31; |
3920 | } | 3920 | } |
3921 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_m(void) | ||
3922 | { | ||
3923 | return 0x1 << 1; | ||
3924 | } | ||
3925 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_disabled_f(void) | ||
3926 | { | ||
3927 | return 0x0; | ||
3928 | } | ||
3929 | static inline u32 gr_bes_crop_debug3_blendopt_read_suppress_enabled_f(void) | ||
3930 | { | ||
3931 | return 0x2; | ||
3932 | } | ||
3933 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_m(void) | ||
3934 | { | ||
3935 | return 0x1 << 2; | ||
3936 | } | ||
3937 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_disabled_f(void) | ||
3938 | { | ||
3939 | return 0x0; | ||
3940 | } | ||
3941 | static inline u32 gr_bes_crop_debug3_blendopt_fill_override_enabled_f(void) | ||
3942 | { | ||
3943 | return 0x4; | ||
3944 | } | ||
3921 | static inline u32 gr_bes_crop_settings_r(void) | 3945 | static inline u32 gr_bes_crop_settings_r(void) |
3922 | { | 3946 | { |
3923 | return 0x00408958; | 3947 | return 0x00408958; |