summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-06-04 16:45:05 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-06-04 16:45:05 +0100
commit81f09347f2ab59cf0a3eaca7be83ded555655e93 (patch)
tree80d6557d6779ff4571fbe16c478b6792b6eaf082
parent1f43de322b400dcd64eb4545a978ad9b1c7de185 (diff)
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 <zdenek.kabelac@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i965_video.c2
1 files changed, 2 insertions, 0 deletions
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));