mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Fix naming convention in host ptr defines
Change-Id: I9f0d5790031b5067b92159b078768e560990b9c6 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
4457d56ba7
commit
7ec8e6a3f2
@@ -157,7 +157,7 @@ int BufferObject::exec(uint32_t used, size_t startOffset, unsigned int flags, bo
|
||||
|
||||
int BufferObject::pin(BufferObject *boToPin[], size_t numberOfBos) {
|
||||
drm_i915_gem_execbuffer2 execbuf = {};
|
||||
StackVec<drm_i915_gem_exec_object2, max_fragments_count + 1> execObject;
|
||||
StackVec<drm_i915_gem_exec_object2, maxFragmentsCount + 1> execObject;
|
||||
|
||||
reinterpret_cast<uint32_t *>(this->address)[0] = 0x05000000;
|
||||
reinterpret_cast<uint32_t *>(this->address)[1] = 0x00000000;
|
||||
|
||||
@@ -470,11 +470,11 @@ uint64_t DrmMemoryManager::getInternalHeapBaseAddress() {
|
||||
}
|
||||
|
||||
MemoryManager::AllocationStatus DrmMemoryManager::populateOsHandles(OsHandleStorage &handleStorage) {
|
||||
BufferObject *allocatedBos[max_fragments_count];
|
||||
BufferObject *allocatedBos[maxFragmentsCount];
|
||||
uint32_t numberOfBosAllocated = 0;
|
||||
uint32_t indexesOfAllocatedBos[max_fragments_count];
|
||||
uint32_t indexesOfAllocatedBos[maxFragmentsCount];
|
||||
|
||||
for (unsigned int i = 0; i < max_fragments_count; i++) {
|
||||
for (unsigned int i = 0; i < maxFragmentsCount; i++) {
|
||||
// If there is no fragment it means it already exists.
|
||||
if (!handleStorage.fragmentStorageData[i].osHandleStorage && handleStorage.fragmentStorageData[i].fragmentSize) {
|
||||
handleStorage.fragmentStorageData[i].osHandleStorage = new OsHandle();
|
||||
@@ -515,7 +515,7 @@ MemoryManager::AllocationStatus DrmMemoryManager::populateOsHandles(OsHandleStor
|
||||
}
|
||||
|
||||
void DrmMemoryManager::cleanOsHandles(OsHandleStorage &handleStorage) {
|
||||
for (unsigned int i = 0; i < max_fragments_count; i++) {
|
||||
for (unsigned int i = 0; i < maxFragmentsCount; i++) {
|
||||
if (handleStorage.fragmentStorageData[i].freeTheFragment) {
|
||||
if (handleStorage.fragmentStorageData[i].osHandleStorage->bo) {
|
||||
BufferObject *search = handleStorage.fragmentStorageData[i].osHandleStorage->bo;
|
||||
|
||||
Reference in New Issue
Block a user