panvk: add a driConf to force enable atomics in shaders

This is mainly useful for enabling validation layers, but might also
be useful for a few apps that use very basic atomic operations. In
general these operations do not work properly in Bifrost, but they
work well enough to e.g. pass some piglit tests.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35710>
This commit is contained in:
Eric R. Smith
2025-06-23 14:47:51 -03:00
committed by Marge Bot
parent fcd2fbfdfd
commit 65bc0f715e
4 changed files with 12 additions and 2 deletions
+4
View File
@@ -611,6 +611,10 @@
DRI_CONF_OPT_B(pan_enable_vertex_pipeline_stores_atomics, def, \
"Enable vertexPipelineStoresAndAtomics on v13+ (This cannot work on older generation because of speculative behaviors around vertices)")
#define DRI_CONF_PAN_FORCE_ENABLE_SHADER_ATOMICS(def) \
DRI_CONF_OPT_B(pan_force_enable_shader_atomics, def, \
"Enable fragmentStoresAndAtomics and vertexPipelineStoresAndAtomics on any architecture. (This may not work reliably and is for debug purposes only!)")
/**
* \brief Turnip specific configuration options
*/