anv: remove ANV_ENABLE_GENERATED_INDIRECT_DRAWS variable
We have a threshold drirc value & environment variable. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: José Roberto de Souza <jose.souza@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26967>
This commit is contained in:

committed by
Marge Bot

parent
59c05b9cfa
commit
62c21c240e
@@ -7,9 +7,6 @@ Debugging
|
||||
Here are a few environment variable debug environment variables
|
||||
specific to ANV:
|
||||
|
||||
:envvar:`ANV_ENABLE_GENERATED_INDIRECT_DRAWS`
|
||||
If defined to ``0`` or ``false``, this will disable the generated
|
||||
indirect draw optimization in ANV. This will only affect Gfx11+.
|
||||
:envvar:`ANV_ENABLE_PIPELINE_CACHE`
|
||||
If defined to ``0`` or ``false``, this will disable pipeline
|
||||
caching, forcing ANV to reparse and recompile any VkShaderModule
|
||||
|
@@ -2240,11 +2240,6 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
if (debug_get_bool_option("ANV_QUEUE_THREAD_DISABLE", false))
|
||||
device->has_exec_timeline = false;
|
||||
|
||||
|
||||
device->generated_indirect_draws =
|
||||
debug_get_bool_option("ANV_ENABLE_GENERATED_INDIRECT_DRAWS",
|
||||
true);
|
||||
|
||||
device->has_cooperative_matrix =
|
||||
device->info.cooperative_matrix_configurations[0].scope != SCOPE_NONE;
|
||||
|
||||
|
@@ -1004,16 +1004,6 @@ struct anv_physical_device {
|
||||
bool uses_ex_bso;
|
||||
|
||||
bool always_flush_cache;
|
||||
|
||||
/**
|
||||
* True if the generated indirect draw optimization is turned on.
|
||||
*
|
||||
* This optimization is currently only available on Gfx11+ to avoid
|
||||
* dealing with the annoying Gfx8/9 tracking of vertex buffer for the VF
|
||||
* cache workaround.
|
||||
*/
|
||||
bool generated_indirect_draws;
|
||||
|
||||
/**
|
||||
* True if the descriptors buffers are holding one of the following :
|
||||
* - anv_sampled_image_descriptor
|
||||
|
@@ -3332,8 +3332,7 @@ anv_use_generated_draws(const struct anv_cmd_buffer *cmd_buffer, uint32_t count)
|
||||
anv_pipeline_has_stage(pipeline, MESA_SHADER_TESS_CTRL))
|
||||
return false;
|
||||
|
||||
return device->physical->generated_indirect_draws &&
|
||||
count >= device->physical->instance->generated_indirect_threshold;
|
||||
return count >= device->physical->instance->generated_indirect_threshold;
|
||||
}
|
||||
|
||||
VkResult
|
||||
|
Reference in New Issue
Block a user