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:
committed by
Marge Bot
parent
2ab3d5f436
commit
bfc1782ad6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user