From 81f09347f2ab59cf0a3eaca7be83ded555655e93 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 4 Jun 2012 16:45:05 +0100 Subject: [PATCH] uxa/i965: Silence static analyser by asserting the bo exists for the video This is already checked at the beginning of PutImageTextured, so this check upon the return value of intel_get_pixmap_bo() should only be required to keep static analysers happy. Reported-by: Zdenek Kabelac Signed-off-by: Chris Wilson --- src/i965_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i965_video.c b/src/i965_video.c index c94f5305..d9350ce7 100644 --- a/src/i965_video.c +++ b/src/i965_video.c @@ -388,6 +388,7 @@ static void i965_create_dst_surface_state(ScrnInfoPtr scrn, intel_screen_private *intel = intel_get_screen_private(scrn); struct brw_surface_state dest_surf_state; drm_intel_bo *pixmap_bo = intel_get_pixmap_bo(pixmap); + assert(pixmap_bo != NULL); memset(&dest_surf_state, 0, sizeof(dest_surf_state)); @@ -484,6 +485,7 @@ static void gen7_create_dst_surface_state(ScrnInfoPtr scrn, intel_screen_private *intel = intel_get_screen_private(scrn); struct gen7_surface_state dest_surf_state; drm_intel_bo *pixmap_bo = intel_get_pixmap_bo(pixmap); + assert(pixmap_bo != NULL); memset(&dest_surf_state, 0, sizeof(dest_surf_state));