Skip to content
Snippets Groups Projects
Commit 9076e9f3 authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon:
Browse files

anv/tests: Zero-initialize instances


Some of the tests were actually relying on some of those uninitialized
bits to be non-zero.  In particular, a couple want use_softpin = true.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
parent 5c664dff
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,11 @@
int main(int argc, char **argv)
{
struct anv_instance instance;
struct anv_instance instance = {
.physicalDevice = {
.use_softpin = true,
},
};
struct anv_device device = {
.instance = &instance,
};
......
......@@ -111,7 +111,7 @@ static void validate_monotonic(int32_t **blocks)
static void run_test()
{
struct anv_instance instance;
struct anv_instance instance = { };
struct anv_device device = {
.instance = &instance,
};
......
......@@ -36,7 +36,7 @@
int main(int argc, char **argv)
{
struct anv_instance instance;
struct anv_instance instance = { };
struct anv_device device = {
.instance = &instance,
};
......
......@@ -35,7 +35,7 @@
int main(int argc, char **argv)
{
struct anv_instance instance;
struct anv_instance instance = { };
struct anv_device device = {
.instance = &instance,
};
......
......@@ -56,7 +56,7 @@ static void *alloc_states(void *_job)
static void run_test()
{
struct anv_instance instance;
struct anv_instance instance = { };
struct anv_device device = {
.instance = &instance,
};
......
......@@ -27,7 +27,11 @@
int main(int argc, char **argv)
{
struct anv_instance instance;
struct anv_instance instance = {
.physicalDevice = {
.use_softpin = true,
},
};
struct anv_device device = {
.instance = &instance,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment