Print this page
5255 uts shouldn't open-code ISP2
@@ -31,10 +31,11 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+#include <sys/sysmacros.h>
#include "drmP.h"
#include "drm.h"
#include "i915_drm.h"
#include "i915_drv.h"
@@ -244,11 +245,11 @@
/* Pre-965 needs power of two tile widths */
if (stride < tile_width)
return 0;
- if (stride & (stride - 1))
+ if (!ISP2(stride))
return 0;
/* We don't handle the aperture area covered by the fence being bigger
* than the object size.
*/