Skip to content

Commit 21f6e7e

Browse files
Remove mock function to check for page fault support
Signed-off-by: Milczarek, Slawomir <[email protected]>
1 parent 513ea83 commit 21f6e7e

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

shared/source/os_interface/linux/drm_neo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class Drm : public DriverModel {
176176
MOCKABLE_VIRTUAL bool registerResourceClasses();
177177

178178
MOCKABLE_VIRTUAL void queryPageFaultSupport();
179-
MOCKABLE_VIRTUAL bool hasPageFaultSupport() const;
179+
bool hasPageFaultSupport() const;
180180

181181
MOCKABLE_VIRTUAL uint32_t registerResource(ResourceClass classType, const void *data, size_t size);
182182
MOCKABLE_VIRTUAL void unregisterResource(uint32_t handle);

shared/source/os_interface/linux/drm_query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ void Drm::queryPageFaultSupport() {
165165
}
166166

167167
bool Drm::hasPageFaultSupport() const {
168-
return false;
168+
return pageFaultSupported;
169169
}
170170

171171
} // namespace NEO

shared/test/common/libult/linux/drm_mock.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ class DrmMock : public Drm {
112112
queryPageFaultSupportCalled = true;
113113
}
114114

115-
bool hasPageFaultSupport() const override {
116-
return pageFaultSupported;
117-
}
118-
119115
static const int mockFd = 33;
120116

121117
bool failRetTopology = false;

0 commit comments

Comments
 (0)