Added FTZ optimizations and adjust pipeline float control handling for Qualcomm drivers

This commit is contained in:
CamilleLaVey 2025-11-05 22:10:02 -04:00
parent 9ffead7e7a
commit 1fc9c3f6ff
4 changed files with 59 additions and 5 deletions

View file

@ -547,6 +547,10 @@ struct Values {
Specialization::Scalar};
SwitchableSetting<bool> force_unsupported_extensions{linkage, false, "force_unsupported_extensions", Category::RendererExtensions};
// Developer toggle to enable FTZ (flush-to-zero) optimizations for testing on
// Qualcomm devices. Default false for safety; when true, pipeline code may
// emit FTZ-friendly SPIR-V and allow fast-math transforms for Adreno GPUs.
SwitchableSetting<bool> enable_ftz{linkage, false, "enable_ftz", Category::RendererExtensions};
SwitchableSetting<bool> provoking_vertex{linkage, false, "provoking_vertex", Category::RendererExtensions};
SwitchableSetting<bool> descriptor_indexing{linkage, false, "descriptor_indexing", Category::RendererExtensions};
SwitchableSetting<bool> sample_shading{linkage, false, "sample_shading", Category::RendererExtensions, Specialization::Paired};