compute-runtime/third_party/aub_stream/headers/allocation_params.h

32 lines
742 B
C
Raw Normal View History

/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include <cstddef>
#include <cstdint>
namespace aub_stream {
struct AllocationParams {
AllocationParams() = delete;
AllocationParams(uint64_t gfxAddress, const void *memory, size_t size, uint32_t memoryBanks, int hint, size_t pageSize)
: gfxAddress(gfxAddress), size(size), pageSize(pageSize), memoryBanks(memoryBanks), hint(hint), memory(memory) {
}
uint64_t gfxAddress = 0;
size_t size = 0;
size_t pageSize;
uint32_t memoryBanks;
int hint = 0;
const void *memory = nullptr;
struct AdditionalParams {
bool compressionEnabled = false;
} additionalParams;
};
} // namespace aub_stream