radv: Add a driconf to advertise rt pipelines

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20464>
This commit is contained in:
Konstantin Seurer
2022-12-30 16:35:00 +01:00
committed by Marge Bot
parent 9e56f69edf
commit ea38efb17e
3 changed files with 7 additions and 1 deletions

View File

@@ -1144,6 +1144,7 @@ static const driOptionDescription radv_dri_options[] = {
DRI_CONF_RADV_FLUSH_BEFORE_QUERY_COPY(false)
DRI_CONF_RADV_ENABLE_UNIFIED_HEAP_ON_APU(false)
DRI_CONF_RADV_TEX_NON_UNIFORM(false)
DRI_CONF_RADV_RT(false)
DRI_CONF_SECTION_END
};
// clang-format on

View File

@@ -35,7 +35,8 @@ radv_enable_rt(const struct radv_physical_device *pdevice, bool rt_pipelines)
return false;
if (rt_pipelines)
return pdevice->instance->perftest_flags & RADV_PERFTEST_RT;
return (pdevice->instance->perftest_flags & RADV_PERFTEST_RT) ||
driQueryOptionb(&pdevice->instance->dri_options, "radv_rt");
return true;
}

View File

@@ -599,6 +599,10 @@
DRI_CONF_OPT_B(radv_tex_non_uniform, def, \
"Always mark texture sample operations as non-uniform.")
#define DRI_CONF_RADV_RT(def) \
DRI_CONF_OPT_B(radv_rt, def, \
"Expose support for VK_KHR_ray_tracing_pipeline")
/**
* \brief ANV specific configuration options
*/