mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Optimize getRootDeviceIndex.
Virtual functions are not easily optimizable by compiler, so making this normal function. This function is called heavily so it needs to be highly optimized. Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5baf25163f
commit
dc44b13b53
@@ -17,7 +17,6 @@ class RootDevice : public Device {
|
||||
RootDevice(ExecutionEnvironment *executionEnvironment, uint32_t rootDeviceIndex);
|
||||
~RootDevice() override;
|
||||
|
||||
uint32_t getRootDeviceIndex() const override;
|
||||
Device *getRootDevice() const override;
|
||||
bool isSubDevice() const override { return false; }
|
||||
|
||||
@@ -26,7 +25,5 @@ class RootDevice : public Device {
|
||||
void createBindlessHeapsHelper() override;
|
||||
|
||||
void initializeRootCommandStreamReceiver();
|
||||
|
||||
const uint32_t rootDeviceIndex;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user