[Intel-gfx] [PATCH 7/7] lib: add igt_draw
Chris Wilson
chris at chris-wilson.co.uk
Wed Apr 1 16:17:33 PDT 2015
On Thu, Apr 02, 2015 at 12:15:13AM +0100, Chris Wilson wrote:
> On Wed, Apr 01, 2015 at 07:40:59PM -0300, Paulo Zanoni wrote:
> > +static void draw_rect_mmap_wc(int fd, struct buf_data *buf, struct rect *rect,
> > + uint32_t color)
> > +{
> > + uint32_t *ptr;
> > + uint32_t tiling, swizzle;
> > +
> > + gem_get_tiling(fd, buf->handle, &tiling, &swizzle);
> > +
> > + /* We didn't implement suport for the older tiling methods yet. */
> > + if (tiling != I915_TILING_NONE)
> > + igt_require(intel_gen(intel_get_drm_devid(fd)) >= 5);
>
> But you now do!
Oh, with the exception of gen2. You need to adjust the tilesize
constants there.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list