mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 00:49:04 +02:00
radv: move radv_{emulate,enable}_rt() to radv_physical_device.c
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26851>
This commit is contained in:
parent
c100905796
commit
685c4b6337
2 changed files with 18 additions and 18 deletions
|
|
@ -90,6 +90,24 @@ radv_calibrated_timestamps_enabled(const struct radv_physical_device *pdevice)
|
|||
!(pdevice->rad_info.family == CHIP_RAVEN || pdevice->rad_info.family == CHIP_RAVEN2);
|
||||
}
|
||||
|
||||
bool
|
||||
radv_enable_rt(const struct radv_physical_device *pdevice, bool rt_pipelines)
|
||||
{
|
||||
if (pdevice->rad_info.gfx_level < GFX10_3 && !radv_emulate_rt(pdevice))
|
||||
return false;
|
||||
|
||||
if (rt_pipelines && pdevice->use_llvm)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
radv_emulate_rt(const struct radv_physical_device *pdevice)
|
||||
{
|
||||
return pdevice->instance->perftest_flags & RADV_PERFTEST_EMULATE_RT;
|
||||
}
|
||||
|
||||
static bool
|
||||
radv_is_conformant(const struct radv_physical_device *pdevice)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,24 +31,6 @@
|
|||
|
||||
static nir_def *build_node_to_addr(struct radv_device *device, nir_builder *b, nir_def *node, bool skip_type_and);
|
||||
|
||||
bool
|
||||
radv_enable_rt(const struct radv_physical_device *pdevice, bool rt_pipelines)
|
||||
{
|
||||
if (pdevice->rad_info.gfx_level < GFX10_3 && !radv_emulate_rt(pdevice))
|
||||
return false;
|
||||
|
||||
if (rt_pipelines && pdevice->use_llvm)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
radv_emulate_rt(const struct radv_physical_device *pdevice)
|
||||
{
|
||||
return pdevice->instance->perftest_flags & RADV_PERFTEST_EMULATE_RT;
|
||||
}
|
||||
|
||||
void
|
||||
nir_sort_hit_pair(nir_builder *b, nir_variable *var_distances, nir_variable *var_indices, uint32_t chan_1,
|
||||
uint32_t chan_2)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue