diff options
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index ae043ed2..e67e2271 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -34,15 +34,15 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * */ +#ifndef _SNA_H_ +#define _SNA_H_ + #ifdef HAVE_CONFIG_H #include "config.h" #endif #include <stdint.h> -#ifndef _SNA_H_ -#define _SNA_H_ - #include "xf86_OSproc.h" #include "compiler.h" #include "xf86PciInfo.h" @@ -67,6 +67,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <libudev.h> #endif +#include "compiler.h" + #define DBG(x) #define DEBUG_ALL (HAS_DEBUG_FULL || 0) @@ -474,6 +476,10 @@ Bool sna_transform_is_integer_translation(const PictTransform *t, Bool sna_transform_is_translation(const PictTransform *t, pixman_fixed_t *tx, pixman_fixed_t *ty); +static inline bool wedged(struct sna *sna) +{ + return unlikely(sna->kgem.wedged); +} static inline uint32_t pixmap_size(PixmapPtr pixmap) { |