mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
936ec9caae
commit
05adcd1d0f
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue