[Intel-gfx] [PATCH 3/3] tests/gem_userptr_benchmark: Benchmarking userptr surfaces and impact

Daniel Vetter daniel at ffwll.ch
Tue Apr 22 20:59:23 CEST 2014


On Thu, Apr 17, 2014 at 04:18:46PM -0700, Volkin, Bradley D wrote:
> On Wed, Mar 19, 2014 at 04:13:06AM -0700, Tvrtko Ursulin wrote:
> > +	bo_ptr = (char *)(((unsigned long)ptr + (PAGE_SIZE - 1))
> > +					& ~(PAGE_SIZE - 1));
> 
> You might add an ALIGN macro in this file or a suitable header. A couple of
> .c files in lib/ individually define one already.

lib/drmtest.h (with the gtkdoc for it include) is the current grab-bag for
such random useful pieces. We already have an ARRAY_SIZE in there.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list