instance->absolute_depth_bias =
driQueryOptionb(&instance->dri_options, "radv_absolute_depth_bias");
+ instance->disable_tc_compat_htile_in_general =
+ driQueryOptionb(&instance->dri_options, "radv_disable_tc_compat_htile_general");
+
if (driQueryOptionb(&instance->dri_options, "radv_no_dynamic_bounds"))
instance->debug_flags |= RADV_DEBUG_NO_DYNAMIC_BOUNDS;
+
+ if (driQueryOptionb(&instance->dri_options, "radv_zero_vram"))
+ instance->debug_flags |= RADV_DEBUG_ZERO_VRAM;
+
+ if (driQueryOptionb(&instance->dri_options, "radv_lower_discard_to_demote"))
+ instance->debug_flags |= RADV_DEBUG_DISCARD_TO_DEMOTE;
+
+ if (driQueryOptionb(&instance->dri_options, "radv_invariant_geom"))
+ instance->debug_flags |= RADV_DEBUG_INVARIANT_GEOM;
}
// clang-format off
DRI_CONF_SECTION_DEBUG
DRI_CONF_OVERRIDE_VRAM_SIZE()
DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(false)
+ DRI_CONF_RADV_ZERO_VRAM(false)
+ DRI_CONF_RADV_LOWER_DISCARD_TO_DEMOTE(false)
+ DRI_CONF_RADV_INVARIANT_GEOM(false)
+ DRI_CONF_RADV_DISABLE_TC_COMPAT_HTILE_GENERAL(false)
DRI_CONF_SECTION_END
};
// clang-format on
DRI_CONF_OPT_I(radv_override_uniform_offset_alignment, def, 0, 128, \
"Override the minUniformBufferOffsetAlignment exposed to the application. (0 = default)")
+#define DRI_CONF_RADV_ZERO_VRAM(def) \
+ DRI_CONF_OPT_B(radv_zero_vram, def, \
+ "Initialize to zero all VRAM allocations")
+
+#define DRI_CONF_RADV_LOWER_DISCARD_TO_DEMOTE(def) \
+ DRI_CONF_OPT_B(radv_lower_discard_to_demote, def, \
+ "Lower discard instructions to demote")
+
+#define DRI_CONF_RADV_INVARIANT_GEOM(def) \
+ DRI_CONF_OPT_B(radv_invariant_geom, def, \
+ "Mark geometry-affecting outputs as invariant")
+
+#define DRI_CONF_RADV_DISABLE_TC_COMPAT_HTILE_GENERAL(def) \
+ DRI_CONF_OPT_B(radv_disable_tc_compat_htile_general, def, \
+ "Disable TC-compat HTILE in GENERAL layout")
+
#endif