Fix naming convention in host ptr defines

Change-Id: I9f0d5790031b5067b92159b078768e560990b9c6
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2018-10-22 14:20:05 +02:00
committed by sys_ocldev
parent 4457d56ba7
commit 7ec8e6a3f2
13 changed files with 39 additions and 39 deletions

View File

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

View File

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