Print this page
5255 uts shouldn't open-code ISP2

*** 31,40 **** --- 31,41 ---- /* * 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,254 **** /* Pre-965 needs power of two tile widths */ if (stride < tile_width) return 0; ! if (stride & (stride - 1)) return 0; /* We don't handle the aperture area covered by the fence being bigger * than the object size. */ --- 245,255 ---- /* Pre-965 needs power of two tile widths */ if (stride < tile_width) return 0; ! if (!ISP2(stride)) return 0; /* We don't handle the aperture area covered by the fence being bigger * than the object size. */