freedreno/perfcntrs/fdperf: add missing a20x compatible
authorJonathan Marek <jonathan@marek.ca>
Wed, 27 Nov 2019 15:45:41 +0000 (10:45 -0500)
committerJonathan Marek <jonathan@marek.ca>
Wed, 27 Nov 2019 17:11:57 +0000 (12:11 -0500)
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
src/freedreno/perfcntrs/fdperf.c

index 45d2a18ebe2b3b4f5e93a2683adea80983e7926f..de139e8c877278f04a1317bd5af23115c6adfb8f 100644 (file)
@@ -282,6 +282,7 @@ find_device_fn(const char *fpath, const struct stat *sb, int typeflag, struct FT
                char *str = readfile(fpath, &sz);
                if ((strcmp(str, "qcom,adreno-3xx") == 0) ||
                                (strcmp(str, "qcom,kgsl-3d0") == 0) ||
+                               (strstr(str, "amd,imageon") == str) ||
                                (strstr(str, "qcom,adreno") == str)) {
                        int dlen = strlen(fpath) - strlen("/compatible");
                        dev.dtnode = malloc(dlen + 1);