mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-24 02:16:03 +00:00
tests/pc8: fix supports_pc8_plus_residencies
Bug caused by bad copy+paste+replace. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
This commit is contained in:
parent
4d3e10d216
commit
6020b951df
@ -103,13 +103,13 @@ static bool supports_pc8_plus_residencies(void)
|
||||
uint64_t val;
|
||||
|
||||
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC8_RES);
|
||||
if (!rc == sizeof(val))
|
||||
if (rc != sizeof(val))
|
||||
return false;
|
||||
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC9_RES);
|
||||
if (!rc == sizeof(val))
|
||||
if (rc != sizeof(val))
|
||||
return false;
|
||||
rc = pread(msr_fd, &val, sizeof(uint64_t), MSR_PC10_RES);
|
||||
if (!rc == sizeof(val))
|
||||
if (rc != sizeof(val))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user