anv: Use intel_device_info memory alignment

It was also necessary to initialize mem_alignment in the tests
otherwise vma allocation would fail with stubs.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21972>
This commit is contained in:
José Roberto de Souza
2023-03-14 12:37:57 -07:00
committed by Marge Bot
parent 2ab3d5f436
commit bfc1782ad6
8 changed files with 13 additions and 8 deletions
@@ -30,6 +30,7 @@ int main(void)
struct anv_device device = {};
struct anv_state_pool state_pool;
test_device_info_init(&physical_device.info);
anv_device_set_physical(&device, &physical_device);
device.kmd_backend = anv_kmd_backend_get(INTEL_KMD_TYPE_STUB);
pthread_mutex_init(&device.mutex, NULL);