File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
source/os_interface/linux Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ class Drm : public DriverModel {
173173 MOCKABLE_VIRTUAL bool registerResourceClasses ();
174174
175175 MOCKABLE_VIRTUAL void queryPageFaultSupport ();
176- bool hasPageFaultSupport () const ;
176+ MOCKABLE_VIRTUAL bool hasPageFaultSupport () const ;
177177
178178 MOCKABLE_VIRTUAL uint32_t registerResource (ResourceClass classType, const void *data, size_t size);
179179 MOCKABLE_VIRTUAL void unregisterResource (uint32_t handle);
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ void Drm::queryPageFaultSupport() {
141141}
142142
143143bool Drm::hasPageFaultSupport () const {
144- return pageFaultSupported ;
144+ return false ;
145145}
146146
147147} // namespace NEO
Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ class DrmMock : public Drm {
112112 queryPageFaultSupportCalled = true ;
113113 }
114114
115+ bool hasPageFaultSupport () const override {
116+ return pageFaultSupported;
117+ }
118+
115119 static const int mockFd = 33 ;
116120
117121 bool failRetTopology = false ;
You can’t perform that action at this time.
0 commit comments