anv/tests: Don't use relocations in a test case
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Aug 2022 23:02:38 +0000 (16:02 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 2 Sep 2022 09:40:46 +0000 (09:40 +0000)
We won't support relocations shortly.

v2: Deal with softpin padding requirement (Lionel)

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18208>

src/intel/vulkan/tests/block_pool_no_free.c

index c42d2fd..9a9f49c 100644 (file)
@@ -46,7 +46,8 @@ static void *alloc_blocks(void *_job)
    int32_t block, *data;
 
    for (unsigned i = 0; i < BLOCKS_PER_THREAD; i++) {
-      block = anv_block_pool_alloc(job->pool, block_size, NULL);
+      UNUSED uint32_t padding;
+      block = anv_block_pool_alloc(job->pool, block_size, &padding);
       data = anv_block_pool_map(job->pool, block, block_size);
       *data = block;
       ASSERT(block >= 0);
@@ -99,9 +100,7 @@ static void validate_monotonic(int32_t **blocks)
 
 static void run_test()
 {
-   struct anv_physical_device physical_device = {
-      .use_relocations = true,
-   };
+   struct anv_physical_device physical_device = {};
    struct anv_device device = {};
    struct anv_block_pool pool;