summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2000-02-13file i810_clear.c was initially added on branch mga-0-0-1-branch.Keith Whitwell
2000-02-13file i810_dma.h was initially added on branch mga-0-0-1-branch.Keith Whitwell
2000-02-12file Makefile.linuxpoll was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-02-12file mga_dmapoll.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-02-12file i810_drm_public.h was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-02-06file mga_state.h was initially added on branch mga-0-0-1-branch.Keith Whitwell
2000-02-04file mga_dma.h was initially added on branch mga-0-0-1-branch.Keith Whitwell
2000-02-04file mga_clear.c was initially added on branch mga-0-0-1-branch.Keith Whitwell
2000-01-28Fixed freelist_put bugJeff Hartmann
2000-01-27file mga_state.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-27file mga_drm_public.h was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-19file mgareg_flags.h was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-17Try a more complex (and more correct?) method for finding kernel inlcudeRik Faith
2000-01-15Remove -g from build Fix lost code from tdfx-1-1 merge in tdfx_priv.c LowerDaryll Strauss
2000-01-13Add new code to do SMP/MODVERSIONS detection for more distributionsRik Faith
2000-01-12Add a drm_poll function to the tdfx driver. This fixes the problem withDaryll Strauss
2000-01-08file i810_dma.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-08file i810_drv.h was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-08file i810_drv.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-08file i810_bufs.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-08file i810_context.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-07Merge between X_3_9_16 and X_3_9_17 Compiles but may not run.Rik Faith
2000-01-06file mga_bufs.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-06file mga_context.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-06file ctxbitmap.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
2000-01-06Import of XFree86 3.9.17Rik Faith
1999-12-18Rename the device to be /dev/dri instead of /dev/dri to avoid a conflict.Daryll Strauss
1999-12-17file agpsupport.c was initially added on branch ati-4-0-0-branch.Rik Faith
1999-12-17file r128_drv.c was initially added on branch ati-4-0-0-branch.Rik Faith
1999-12-17file r128_context.c was initially added on branch ati-4-0-0-branch.Rik Faith
1999-12-17file r128_drv.h was initially added on branch ati-4-0-0-branch.Rik Faith
1999-12-15file mga_drv.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
1999-12-15file mga_dma.c was initially added on branch mga-0-0-1-branch.Jeff Hartmann
1999-12-15file mga_drv.h was initially added on branch mga-0-0-1-branch.Jeff Hartmann
1999-12-08Sync with Linux 2.3.30Rik Faith
1999-12-07Move Mesa to xc/extras Update to the latest Mesa 3.2 code Fix the Q3DemoDaryll Strauss
1999-12-05First DRI release of 3dfx driver.Daryll Strauss
1999-12-05Import XFree 3.9.16Daryll Strauss
1999-12-05Initial revisionDaryll Strauss
ss="hl opt">.size = size; write.offset = offset; return ioctl(fd, DRM_IOCTL_GEM_PWRITE, &write); } int main(int argc, char **argv) { int fd; struct drm_gem_create create; uint8_t expected[OBJECT_SIZE]; uint8_t buf[OBJECT_SIZE]; int ret; int handle; fd = drm_open_any(); memset(&create, 0, sizeof(create)); create.size = OBJECT_SIZE; ret = ioctl(fd, DRM_IOCTL_GEM_CREATE, &create); assert(ret == 0); handle = create.handle; printf("Testing contents of newly created object.\n"); ret = do_read(fd, handle, buf, 0, OBJECT_SIZE); assert(ret == 0); memset(&expected, 0, sizeof(expected)); assert(memcmp(expected, buf, sizeof(expected)) == 0); printf("Testing read beyond end of buffer.\n"); ret = do_read(fd, handle, buf, OBJECT_SIZE / 2, OBJECT_SIZE); assert(ret == -1 && errno == EINVAL); printf("Testing full write of buffer\n"); memset(buf, 0, sizeof(buf)); memset(buf + 1024, 0x01, 1024); memset(expected + 1024, 0x01, 1024); ret = do_write(fd, handle, buf, 0, OBJECT_SIZE); assert(ret == 0); ret = do_read(fd, handle, buf, 0, OBJECT_SIZE); assert(ret == 0); assert(memcmp(buf, expected, sizeof(buf)) == 0); printf("Testing partial write of buffer\n"); memset(buf + 4096, 0x02, 1024); memset(expected + 4096, 0x02, 1024); ret = do_write(fd, handle, buf + 4096, 4096, 1024); assert(ret == 0); ret = do_read(fd, handle, buf, 0, OBJECT_SIZE); assert(ret == 0); assert(memcmp(buf, expected, sizeof(buf)) == 0); printf("Testing partial read of buffer\n"); ret = do_read(fd, handle, buf, 512, 1024); assert(ret == 0); assert(memcmp(buf, expected + 512, 1024) == 0); close(fd); return 0; }