summaryrefslogtreecommitdiff
path: root/src/sna/brw
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-10 11:48:40 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-10 11:58:11 +0100
commit224af800f695b50ba5a65b5a2b9ca1e7a88d4e1a (patch)
tree7bfe81cc2979e22006e46ce4a0e5bcfefa68c40e /src/sna/brw
parent0d1df4762ffd7babb95a5f48f77487a6c7db83fe (diff)
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 <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/brw')
-rw-r--r--src/sna/brw/brw_eu.c4
-rw-r--r--src/sna/brw/brw_eu.h2
2 files changed, 5 insertions, 1 deletions
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 <keith@tungstengraphics.com>
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "brw_eu.h"
#include <string.h>
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 <keith@tungstengraphics.com>
*/
-
#ifndef BRW_EU_H
#define BRW_EU_H
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
+
#include <assert.h>
#define BRW_SWIZZLE4(a,b,c,d) (((a)<<0) | ((b)<<2) | ((c)<<4) | ((d)<<6))