mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-07-23 18:06:18 +00:00
gem_ring_sync_loop.c: fix an operator error
Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
8be812b86c
commit
b6fa628db0
@ -68,7 +68,7 @@ get_num_rings(int fd)
|
|||||||
gp.param = I915_PARAM_HAS_BSD;
|
gp.param = I915_PARAM_HAS_BSD;
|
||||||
ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||||
|
|
||||||
if ((ret == 0) & (*gp.value > 0))
|
if ((ret == 0) && (*gp.value > 0))
|
||||||
num_rings++;
|
num_rings++;
|
||||||
else
|
else
|
||||||
goto skip;
|
goto skip;
|
||||||
@ -76,7 +76,7 @@ get_num_rings(int fd)
|
|||||||
gp.param = I915_PARAM_HAS_BLT;
|
gp.param = I915_PARAM_HAS_BLT;
|
||||||
ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
ret = drmIoctl(fd, DRM_IOCTL_I915_GETPARAM, &gp);
|
||||||
|
|
||||||
if ((ret == 0) & (*gp.value > 0))
|
if ((ret == 0) && (*gp.value > 0))
|
||||||
num_rings++;
|
num_rings++;
|
||||||
else
|
else
|
||||||
goto skip;
|
goto skip;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user