anv/tests: Don't use relocations in a test case

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>
This commit is contained in:
Kenneth Graunke 2022-08-30 16:02:38 -07:00 committed by Marge Bot
parent 936ec9caae
commit 05adcd1d0f

View 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;