mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 13:23:02 +00:00
igt.cocci: Replace igt_assert() with igt_assert_CMP() where possible
The integer comparison macros give us better error output by including the actual values that failed the comparison. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
committed by
Daniel Vetter
parent
14a3d88a09
commit
07be8fec15
+2
-2
@@ -187,7 +187,7 @@ static void create_fb_for_crtc(struct crtc_config *crtc,
|
||||
crtc->mode.vdisplay,
|
||||
igt_bpp_depth_to_drm_format(bpp, depth),
|
||||
I915_TILING_NONE, fb_info);
|
||||
igt_assert(fb_id > 0);
|
||||
igt_assert_lt(0, fb_id);
|
||||
}
|
||||
|
||||
static void get_mode_for_crtc(struct crtc_config *crtc,
|
||||
@@ -281,7 +281,7 @@ static void setup_crtcs(drmModeRes *resources, struct connector_config *cconf,
|
||||
unsigned long encoder_mask;
|
||||
int j;
|
||||
|
||||
igt_assert(crtc_count < MAX_CRTCS);
|
||||
igt_assert_lt(crtc_count, MAX_CRTCS);
|
||||
|
||||
crtc->crtc_idx = cconf[i].crtc_idx;
|
||||
drm_crtc = drmModeGetCrtc(drm_fd,
|
||||
|
||||
Reference in New Issue
Block a user