mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 23:48:18 +02:00
radv: rename few drirc options for consistency
So that the option name matches everywhere. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41634>
This commit is contained in:
parent
7b84183201
commit
bf787fd91b
4 changed files with 12 additions and 12 deletions
|
|
@ -1610,7 +1610,7 @@ radv_layout_is_htile_compressed(const struct radv_device *device, const struct r
|
|||
* the number of decompressions from/to GENERAL.
|
||||
*/
|
||||
if (radv_tc_compat_htile_enabled(image, level) && queue_mask & (1u << RADV_QUEUE_GENERAL) &&
|
||||
!instance->drirc.debug.disable_tc_compat_htile_in_general) {
|
||||
!instance->drirc.debug.disable_tc_compat_htile_general) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ radv_init_dri_debug_options(struct radv_instance *instance)
|
|||
drirc->debug.disable_dcc_stores = driQueryOptionb(&drirc->options, "radv_disable_dcc_stores");
|
||||
drirc->debug.disable_shrink_image_store = driQueryOptionb(&drirc->options, "radv_disable_shrink_image_store");
|
||||
drirc->debug.disable_sinking_load_input_fs = driQueryOptionb(&drirc->options, "radv_disable_sinking_load_input_fs");
|
||||
drirc->debug.disable_tc_compat_htile_in_general =
|
||||
drirc->debug.disable_tc_compat_htile_general =
|
||||
driQueryOptionb(&drirc->options, "radv_disable_tc_compat_htile_general");
|
||||
|
||||
drirc->debug.disable_trunc_coord = driQueryOptionb(&drirc->options, "radv_disable_trunc_coord");
|
||||
|
|
@ -305,9 +305,9 @@ radv_init_dri_features_options(struct radv_instance *instance)
|
|||
|
||||
drirc->features.cooperative_matrix2_nv = driQueryOptionb(&drirc->options, "radv_cooperative_matrix2_nv");
|
||||
drirc->features.emulate_rt = driQueryOptionb(&drirc->options, "radv_emulate_rt");
|
||||
drirc->features.expose_float16_gfx8 = driQueryOptionb(&drirc->options, "radv_enable_float16_gfx8");
|
||||
drirc->features.vk_require_etc2 = driQueryOptionb(&drirc->options, "vk_require_etc2");
|
||||
drirc->features.vk_require_astc = driQueryOptionb(&drirc->options, "vk_require_astc");
|
||||
drirc->features.enable_float16_gfx8 = driQueryOptionb(&drirc->options, "radv_enable_float16_gfx8");
|
||||
drirc->features.require_etc2 = driQueryOptionb(&drirc->options, "vk_require_etc2");
|
||||
drirc->features.require_astc = driQueryOptionb(&drirc->options, "vk_require_astc");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ struct radv_drirc {
|
|||
bool disable_dcc_stores;
|
||||
bool disable_shrink_image_store;
|
||||
bool disable_sinking_load_input_fs;
|
||||
bool disable_tc_compat_htile_in_general;
|
||||
bool disable_tc_compat_htile_general;
|
||||
bool disable_trunc_coord;
|
||||
bool enable_mrt_output_nan_fixup;
|
||||
bool flush_before_query_copy;
|
||||
|
|
@ -77,9 +77,9 @@ struct radv_drirc {
|
|||
struct {
|
||||
bool cooperative_matrix2_nv;
|
||||
bool emulate_rt;
|
||||
bool expose_float16_gfx8;
|
||||
bool vk_require_astc;
|
||||
bool vk_require_etc2;
|
||||
bool enable_float16_gfx8;
|
||||
bool require_astc;
|
||||
bool require_etc2;
|
||||
} features;
|
||||
|
||||
struct {
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ radv_shader_fp16_enabled(const struct radv_physical_device *pdev)
|
|||
* that by default because it can sometimes hurt perf.
|
||||
*/
|
||||
return pdev->info.compiler_info.has_packed_math_16bit ||
|
||||
(pdev->info.gfx_level == GFX8 && instance->drirc.features.expose_float16_gfx8);
|
||||
(pdev->info.gfx_level == GFX8 && instance->drirc.features.enable_float16_gfx8);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
@ -2577,8 +2577,8 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm
|
|||
pdev->emulate_etc2 = !pdev->info.has_etc_support;
|
||||
pdev->emulate_astc = true;
|
||||
#else
|
||||
pdev->emulate_etc2 = !pdev->info.has_etc_support && instance->drirc.features.vk_require_etc2;
|
||||
pdev->emulate_astc = instance->drirc.features.vk_require_astc;
|
||||
pdev->emulate_etc2 = !pdev->info.has_etc_support && instance->drirc.features.require_etc2;
|
||||
pdev->emulate_astc = instance->drirc.features.require_astc;
|
||||
#endif
|
||||
|
||||
const char *name = ac_get_family_name(pdev->info.family);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue