Skip to content

Commit 1cad9c8

Browse files
17314642flightlessmango
authored andcommitted
gpu_fdinfo: move find_fd() to the right place
1 parent 26c0f0a commit 1cad9c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpu_fdinfo.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ class GPU_fdinfo {
3737

3838
public:
3939
GPU_fdinfo(const std::string module, const std::string pci_dev) : module(module), pci_dev(pci_dev) {
40-
find_fd();
41-
4240
if (module == "i915") {
4341
drm_engine_type = "drm-engine-render";
4442
drm_memory_type = "drm-total-local0";
@@ -51,6 +49,8 @@ class GPU_fdinfo {
5149
drm_engine_type = "drm-engine-gpu";
5250
}
5351

52+
find_fd();
53+
5454
std::thread thread(&GPU_fdinfo::get_load, this);
5555
thread.detach();
5656
}

0 commit comments

Comments
 (0)