diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | 12 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h index 8783a0bc..e8675bea 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |||
@@ -238,4 +238,16 @@ static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(v | |||
238 | { | 238 | { |
239 | return 0x0; | 239 | return 0x0; |
240 | } | 240 | } |
241 | static inline u32 ctxsw_prog_main_image_preemption_options_o(void) | ||
242 | { | ||
243 | return 0x00000060; | ||
244 | } | ||
245 | static inline u32 ctxsw_prog_main_image_preemption_options_control_f(u32 v) | ||
246 | { | ||
247 | return (v & 0x3) << 0; | ||
248 | } | ||
249 | static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f(void) | ||
250 | { | ||
251 | return 0x1; | ||
252 | } | ||
241 | #endif | 253 | #endif |
diff --git a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h index 8e4308a3..34cf20de 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_gr_gm20b.h | |||
@@ -1302,6 +1302,10 @@ static inline u32 gr_ds_zbc_color_fmt_val_rf32_gf32_bf32_af32_v(void) | |||
1302 | { | 1302 | { |
1303 | return 0x00000004; | 1303 | return 0x00000004; |
1304 | } | 1304 | } |
1305 | static inline u32 gr_ds_zbc_color_fmt_val_a8_b8_g8_r8_v(void) | ||
1306 | { | ||
1307 | return 0x00000028; | ||
1308 | } | ||
1305 | static inline u32 gr_ds_zbc_z_r(void) | 1309 | static inline u32 gr_ds_zbc_z_r(void) |
1306 | { | 1310 | { |
1307 | return 0x00405818; | 1311 | return 0x00405818; |