ci: Unify on MESA_VK_IGNORE_CONFORMANCE_WARNING

Move and rename warn_non_conformant_implementation() to common location
of src/vulkan/util/vk_util.c as vk_warn_non_conformant_implementation().

In freedreno/ci,  move MESA_VK_IGNORE_CONFORMANCE_WARNING to common
location of .baremetal-deqp-test-freedreno-vk.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11563>
This commit is contained in:
Matt Turner
2021-06-23 13:22:03 -07:00
committed by Marge Bot
parent 6a79ee97f4
commit ed77bf3c4e
6 changed files with 18 additions and 24 deletions
+12
View File
@@ -23,9 +23,11 @@
* IN THE SOFTWARE.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "vk_util.h"
#include "util/debug.h"
uint32_t vk_get_driver_version(void)
{
@@ -67,3 +69,13 @@ uint32_t vk_get_version_override(void)
return VK_MAKE_VERSION(major, minor, patch);
}
void
vk_warn_non_conformant_implementation(const char *driver_name)
{
if (env_var_as_boolean("MESA_VK_IGNORE_CONFORMANCE_WARNING", false))
return;
fprintf(stderr, "WARNING: %s is not a conformant Vulkan implementation, "
"testing use only.\n", driver_name);
}
+2
View File
@@ -223,6 +223,8 @@ uint32_t vk_get_driver_version(void);
uint32_t vk_get_version_override(void);
void vk_warn_non_conformant_implementation(const char *driver_name);
struct vk_pipeline_cache_header {
uint32_t header_size;
uint32_t header_version;