X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fintel%2Fvulkan%2Ftests%2Fstate_pool_padding.c;h=07ea41802a8173d53bc03bfbff033adbd4a993fd;hb=d11e4738a86ecac6bb4cfaf5cad5c1d32169b18f;hp=44509cde07aa95e57676a00526d616bb07c96300;hpb=f7c56475d25138234ab0bb28a10df9000de594f9;p=mesa.git diff --git a/src/intel/vulkan/tests/state_pool_padding.c b/src/intel/vulkan/tests/state_pool_padding.c index 44509cde07a..07ea41802a8 100644 --- a/src/intel/vulkan/tests/state_pool_padding.c +++ b/src/intel/vulkan/tests/state_pool_padding.c @@ -27,13 +27,17 @@ int main(int argc, char **argv) { - struct anv_instance instance; + struct anv_physical_device physical_device = { + .use_softpin = true, + }; struct anv_device device = { - .instance = &instance, + .physical = &physical_device, }; struct anv_state_pool state_pool; - anv_state_pool_init(&state_pool, &device, 4096, 4096, EXEC_OBJECT_PINNED); + pthread_mutex_init(&device.mutex, NULL); + anv_bo_cache_init(&device.bo_cache); + anv_state_pool_init(&state_pool, &device, 4096, 0, 4096); /* Get the size of the underlying block_pool */ struct anv_block_pool *bp = &state_pool.block_pool;