Remove duplicated code in drm_query files

This commit moves duplicated code in drm_query.cpp and
drm_query_dg1.cpp to shared drm_query_extended.cpp

Related-To: NEO-6149

Signed-off-by: Szymon Morek <szymon.morek@intel.com>
This commit is contained in:
Szymon Morek
2021-09-07 09:42:55 +00:00
committed by Compute-Runtime-Automation
parent 2e9e6f7dcb
commit ae6d58bcb0
3 changed files with 33 additions and 66 deletions

View File

@@ -5,6 +5,7 @@
*
*/
#include "shared/source/os_interface/linux/cache_info_impl.h"
#include "shared/source/os_interface/linux/drm_neo.h"
#include "drm_query_flags.h"
@@ -34,4 +35,36 @@ bool Drm::isDebugAttachAvailable() {
return false;
}
bool Drm::querySystemInfo() {
return false;
}
void Drm::setupSystemInfo(HardwareInfo *hwInfo, SystemInfo *sysInfo) {}
void Drm::setupCacheInfo(const HardwareInfo &hwInfo) {
this->cacheInfo.reset(new CacheInfoImpl());
}
int Drm::bindBufferObject(OsContext *osContext, uint32_t vmHandleId, BufferObject *bo) {
return 0;
}
int Drm::unbindBufferObject(OsContext *osContext, uint32_t vmHandleId, BufferObject *bo) {
return 0;
}
void Drm::waitForBind(uint32_t vmHandleId) {
}
int Drm::waitUserFence(uint32_t ctx, uint64_t address, uint64_t value, ValueWidth dataWidth, int64_t timeout, uint16_t flags) {
return 0;
}
bool Drm::isVmBindAvailable() {
return this->bindAvailable;
}
void Drm::appendDrmContextFlags(drm_i915_gem_context_create_ext &gcc, bool isSpecialContextRequested) {
}
} // namespace NEO