From 224af800f695b50ba5a65b5a2b9ca1e7a88d4e1a Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 10 Sep 2014 11:48:40 +0100 Subject: sna: Emit assertions with FatalError The intention is to be able to capture the assertion in the Xorg.0.log (journald equivalent). At the moment, it is emitted to stderr which is difficult to capture and defeats the goal of only asking the reporter to upload one log file. Signed-off-by: Chris Wilson --- src/sna/brw/brw_eu.c | 4 ++++ src/sna/brw/brw_eu.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/sna/brw') diff --git a/src/sna/brw/brw_eu.c b/src/sna/brw/brw_eu.c index 9bd8ba5d..c5705f56 100644 --- a/src/sna/brw/brw_eu.c +++ b/src/sna/brw/brw_eu.c @@ -29,6 +29,10 @@ * Keith Whitwell */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "brw_eu.h" #include diff --git a/src/sna/brw/brw_eu.h b/src/sna/brw/brw_eu.h index 0124ac21..e8210a12 100644 --- a/src/sna/brw/brw_eu.h +++ b/src/sna/brw/brw_eu.h @@ -29,13 +29,13 @@ * Keith Whitwell */ - #ifndef BRW_EU_H #define BRW_EU_H #include #include #include + #include #define BRW_SWIZZLE4(a,b,c,d) (((a)<<0) | ((b)<<2) | ((c)<<4) | ((d)<<6)) -- cgit v1.2.3