Searched refs:tt (Results 1 - 25 of 69) sorted by relevance

123

/xsrc/external/mit/xf86-video-intel/dist/test/
H A Dtest_render.c22 struct test_target *tt)
27 tt->dpy = dpy;
28 tt->target = target;
30 tt->draw = dpy->root;
31 tt->format = dpy->format;
32 tt->width = dpy->width;
33 tt->height = dpy->height;
34 tt->depth = dpy->depth;
42 tt->width /= 4;
43 tt
20 test_target_create_render(struct test_display * dpy,enum target target,struct test_target * tt) argument
71 test_target_destroy_render(struct test_display * dpy,struct test_target * tt) argument
[all...]
H A Drender-composite-solid.c35 struct test_target tt; local in function:pixel_tests
43 test_target_create_render(&t->out, target, &tt);
51 int x = rand() % (tt.width - 1);
52 int y = rand() % (tt.height - 1);
58 fill_rect(&t->out, tt.picture, PictOpSrc,
64 cells[y*tt.width+x] = color(red, green, blue, alpha);
67 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
74 XShmGetImage(t->out.dpy, tt.draw, &image,
79 cells[y*tt.width+x])) {
88 cells[y*tt
101 clear(struct test_display * dpy,struct test_target * tt) argument
110 struct test_target tt; local in function:area_tests
[all...]
H A Drender-fill.c32 struct test_target tt; local in function:pixel_tests
40 test_target_create_render(&t->out, target, &tt);
48 int x = rand() % (tt.width - 1);
49 int y = rand() % (tt.height - 1);
55 fill_rect(&t->out, tt.picture, PictOpSrc,
61 cells[y*tt.width+x] = color(red, green, blue, alpha);
64 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
71 XShmGetImage(t->out.dpy, tt.draw, &image,
76 cells[y*tt.width+x])) {
80 cells[y*tt
93 clear(struct test_display * dpy,struct test_target * tt) argument
102 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copyarea-size.c17 static void target_init(struct test_display *t, struct draw *tt, int size) argument
21 tt->format = XRenderFindStandardFormat(t->dpy, PictStandardARGB32);
23 tt->a = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
24 size, size, tt->format->depth);
25 tt->pa = XRenderCreatePicture(t->dpy, tt->a, tt->format, 0, NULL);
31 XRenderFillRectangle(t->dpy, PictOpSrc, tt->pa, &color, 0, 0, size, size);
33 tt->b = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
34 size, size, tt
44 target_fini(struct test_display * t,struct draw * tt) argument
[all...]
H A Dbasic-copyarea.c86 struct test_target tt; local in function:pixel_tests
94 test_target_create_render(&t->out, target, &tt);
102 int x = rand() % (tt.width - 1);
103 int y = rand() % (tt.height - 1);
106 fill_rect(&t->out, tt.draw, tt.format,
112 cells[y*tt.width+x] = fg;
115 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
122 XShmGetImage(t->out.dpy, tt.draw, &image,
127 cells[y*tt
146 clear(struct test_display * dpy,struct test_target * tt) argument
155 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copyarea.c86 struct test_target tt; local in function:pixel_tests
94 test_target_create_render(&t->out, target, &tt);
102 int x = rand() % (tt.width - 1);
103 int y = rand() % (tt.height - 1);
109 fill_rect(&t->out, tt.picture, tt.format,
116 cells[y*tt.width+x] = color(red, green, blue, alpha);
119 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
126 XShmGetImage(t->out.dpy, tt.draw, &image,
131 cells[y*tt
150 clear(struct test_display * dpy,struct test_target * tt) argument
159 struct test_target tt; local in function:area_tests
[all...]
H A Dmixed-stress.c10 static void _render_copy(struct test_target *tt, argument
18 tmp = XCreatePixmap(tt->dpy->dpy, DefaultRootWindow(tt->dpy->dpy),
19 10+w, 20+h, tt->format->depth);
20 src = XRenderCreatePicture(tt->dpy->dpy, tmp, tt->format, 0, NULL);
27 XRenderFillRectangle(tt->dpy->dpy, PictOpSrc, src, &color, 0, 0, w+10, h+20);
33 XRenderFillRectangle(tt->dpy->dpy, PictOpSrc, src, &color, 5, 10, w, h);
35 XRenderComposite(tt->dpy->dpy, PictOpSrc,
36 src, 0, tt
62 fill_rect(struct test_target * tt,int alu,int color,int x,int y,int w,int h) argument
75 clear(struct test_target * tt) argument
120 _put(struct test_target * tt,int x,int y,int w,int h,int color,int alu) argument
[all...]
H A Dbasic-fillrect.c57 struct test_target tt; local in function:pixel_tests
65 test_target_create_render(&t->out, target, &tt);
73 int x = rand() % (tt.width - 1);
74 int y = rand() % (tt.height - 1);
77 fill_rect(&t->out, tt.draw, GXcopy,
82 cells[y*tt.width+x] = fg;
85 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
92 XShmGetImage(t->out.dpy, tt.draw, &image,
97 cells[y*tt.width+x])) {
102 cells[y*tt
116 clear(struct test_display * dpy,struct test_target * tt) argument
125 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copy-alphaless.c69 struct test_target tt; local in function:pixel_tests
77 test_target_create_render(&t->out, target, &tt);
85 int x = rand() % (tt.width - 1);
86 int y = rand() % (tt.height - 1);
91 fill_rect(&t->out, tt.picture,
97 cells[y*tt.width+x] = color(red, green, blue, 0xff);
100 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
107 XShmGetImage(t->out.dpy, tt.draw, &image,
112 cells[y*tt.width+x])) {
117 cells[y*tt
131 clear(struct test_display * dpy,struct test_target * tt) argument
140 struct test_target tt; local in function:area_tests
[all...]
H A Drender-fill-copy.c58 struct test_target tt; local in function:pixel_tests
66 test_target_create_render(&t->out, target, &tt);
74 int x = rand() % (tt.width - 1);
75 int y = rand() % (tt.height - 1);
81 fill_rect(&t->out, tt.picture, tt.format,
87 cells[y*tt.width+x] = color(red, green, blue, alpha);
90 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
97 XShmGetImage(t->out.dpy, tt.draw, &image,
102 cells[y*tt
123 clear(struct test_display * dpy,struct test_target * tt) argument
132 struct test_target tt; local in function:area_tests
[all...]
H A Dbasic-copyarea-size.c16 static void target_init(struct test_display *t, struct draw *tt, int size) argument
20 tt->a = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
22 tt->b = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
26 tt->gc = XCreateGC(t->dpy, tt->a, GCGraphicsExposures, &val);
28 tt->format = XRenderFindStandardFormat(t->dpy, PictStandardARGB32);
31 XChangeGC(t->dpy, tt->gc, GCForeground, &val);
32 XFillRectangle(t->dpy, tt->a, tt->gc, 0, 0, size, size);
35 XChangeGC(t->dpy, tt
39 target_fini(struct test_display * t,struct draw * tt) argument
[all...]
H A Dbasic-stress.c10 static void fill_rect(struct test_target *tt, argument
18 XChangeGC(tt->dpy->dpy, tt->gc, GCFunction | GCForeground, &val);
20 XFillRectangle(tt->dpy->dpy, tt->draw, tt->gc, x, y, w, h);
23 static void clear(struct test_target *tt) argument
25 fill_rect(tt,
27 0, 0, tt->width, tt
68 _put(struct test_target * tt,int x,int y,int w,int h,int color,int alu) argument
[all...]
/xsrc/external/mit/xf86-video-intel-2014/dist/test/
H A Dtest_render.c22 struct test_target *tt)
27 tt->dpy = dpy;
28 tt->target = target;
30 tt->draw = dpy->root;
31 tt->format = dpy->format;
32 tt->width = dpy->width;
33 tt->height = dpy->height;
34 tt->depth = dpy->depth;
42 tt->width /= 4;
43 tt
20 test_target_create_render(struct test_display * dpy,enum target target,struct test_target * tt) argument
71 test_target_destroy_render(struct test_display * dpy,struct test_target * tt) argument
[all...]
H A Drender-composite-solid.c35 struct test_target tt; local in function:pixel_tests
43 test_target_create_render(&t->out, target, &tt);
51 int x = rand() % (tt.width - 1);
52 int y = rand() % (tt.height - 1);
58 fill_rect(&t->out, tt.picture, PictOpSrc,
64 cells[y*tt.width+x] = color(red, green, blue, alpha);
67 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
74 XShmGetImage(t->out.dpy, tt.draw, &image,
79 cells[y*tt.width+x])) {
88 cells[y*tt
101 clear(struct test_display * dpy,struct test_target * tt) argument
110 struct test_target tt; local in function:area_tests
[all...]
H A Drender-fill.c32 struct test_target tt; local in function:pixel_tests
40 test_target_create_render(&t->out, target, &tt);
48 int x = rand() % (tt.width - 1);
49 int y = rand() % (tt.height - 1);
55 fill_rect(&t->out, tt.picture, PictOpSrc,
61 cells[y*tt.width+x] = color(red, green, blue, alpha);
64 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
71 XShmGetImage(t->out.dpy, tt.draw, &image,
76 cells[y*tt.width+x])) {
80 cells[y*tt
93 clear(struct test_display * dpy,struct test_target * tt) argument
102 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copyarea-size.c17 static void target_init(struct test_display *t, struct draw *tt, int size) argument
21 tt->format = XRenderFindStandardFormat(t->dpy, PictStandardARGB32);
23 tt->a = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
24 size, size, tt->format->depth);
25 tt->pa = XRenderCreatePicture(t->dpy, tt->a, tt->format, 0, NULL);
31 XRenderFillRectangle(t->dpy, PictOpSrc, tt->pa, &color, 0, 0, size, size);
33 tt->b = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
34 size, size, tt
44 target_fini(struct test_display * t,struct draw * tt) argument
[all...]
H A Dbasic-copyarea.c86 struct test_target tt; local in function:pixel_tests
94 test_target_create_render(&t->out, target, &tt);
102 int x = rand() % (tt.width - 1);
103 int y = rand() % (tt.height - 1);
106 fill_rect(&t->out, tt.draw, tt.format,
112 cells[y*tt.width+x] = fg;
115 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
122 XShmGetImage(t->out.dpy, tt.draw, &image,
127 cells[y*tt
146 clear(struct test_display * dpy,struct test_target * tt) argument
155 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copyarea.c86 struct test_target tt; local in function:pixel_tests
94 test_target_create_render(&t->out, target, &tt);
102 int x = rand() % (tt.width - 1);
103 int y = rand() % (tt.height - 1);
109 fill_rect(&t->out, tt.picture, tt.format,
116 cells[y*tt.width+x] = color(red, green, blue, alpha);
119 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
126 XShmGetImage(t->out.dpy, tt.draw, &image,
131 cells[y*tt
150 clear(struct test_display * dpy,struct test_target * tt) argument
159 struct test_target tt; local in function:area_tests
[all...]
H A Dmixed-stress.c10 static void _render_copy(struct test_target *tt, argument
18 tmp = XCreatePixmap(tt->dpy->dpy, DefaultRootWindow(tt->dpy->dpy),
19 10+w, 20+h, tt->format->depth);
20 src = XRenderCreatePicture(tt->dpy->dpy, tmp, tt->format, 0, NULL);
27 XRenderFillRectangle(tt->dpy->dpy, PictOpSrc, src, &color, 0, 0, w+10, h+20);
33 XRenderFillRectangle(tt->dpy->dpy, PictOpSrc, src, &color, 5, 10, w, h);
35 XRenderComposite(tt->dpy->dpy, PictOpSrc,
36 src, 0, tt
62 fill_rect(struct test_target * tt,int alu,int color,int x,int y,int w,int h) argument
75 clear(struct test_target * tt) argument
120 _put(struct test_target * tt,int x,int y,int w,int h,int color,int alu) argument
[all...]
H A Dbasic-fillrect.c57 struct test_target tt; local in function:pixel_tests
65 test_target_create_render(&t->out, target, &tt);
73 int x = rand() % (tt.width - 1);
74 int y = rand() % (tt.height - 1);
77 fill_rect(&t->out, tt.draw, GXcopy,
82 cells[y*tt.width+x] = fg;
85 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
92 XShmGetImage(t->out.dpy, tt.draw, &image,
97 cells[y*tt.width+x])) {
102 cells[y*tt
116 clear(struct test_display * dpy,struct test_target * tt) argument
125 struct test_target tt; local in function:area_tests
[all...]
H A Drender-copy-alphaless.c69 struct test_target tt; local in function:pixel_tests
77 test_target_create_render(&t->out, target, &tt);
85 int x = rand() % (tt.width - 1);
86 int y = rand() % (tt.height - 1);
91 fill_rect(&t->out, tt.picture,
97 cells[y*tt.width+x] = color(red, green, blue, 0xff);
100 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
107 XShmGetImage(t->out.dpy, tt.draw, &image,
112 cells[y*tt.width+x])) {
117 cells[y*tt
131 clear(struct test_display * dpy,struct test_target * tt) argument
140 struct test_target tt; local in function:area_tests
[all...]
H A Drender-fill-copy.c58 struct test_target tt; local in function:pixel_tests
66 test_target_create_render(&t->out, target, &tt);
74 int x = rand() % (tt.width - 1);
75 int y = rand() % (tt.height - 1);
81 fill_rect(&t->out, tt.picture, tt.format,
87 cells[y*tt.width+x] = color(red, green, blue, alpha);
90 test_init_image(&image, &t->out.shm, tt.format, 1, 1);
97 XShmGetImage(t->out.dpy, tt.draw, &image,
102 cells[y*tt
123 clear(struct test_display * dpy,struct test_target * tt) argument
132 struct test_target tt; local in function:area_tests
[all...]
H A Dbasic-copyarea-size.c16 static void target_init(struct test_display *t, struct draw *tt, int size) argument
20 tt->a = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
22 tt->b = XCreatePixmap(t->dpy, DefaultRootWindow(t->dpy),
26 tt->gc = XCreateGC(t->dpy, tt->a, GCGraphicsExposures, &val);
28 tt->format = XRenderFindStandardFormat(t->dpy, PictStandardARGB32);
31 XChangeGC(t->dpy, tt->gc, GCForeground, &val);
32 XFillRectangle(t->dpy, tt->a, tt->gc, 0, 0, size, size);
35 XChangeGC(t->dpy, tt
39 target_fini(struct test_display * t,struct draw * tt) argument
[all...]
H A Dbasic-stress.c10 static void fill_rect(struct test_target *tt, argument
18 XChangeGC(tt->dpy->dpy, tt->gc, GCFunction | GCForeground, &val);
20 XFillRectangle(tt->dpy->dpy, tt->draw, tt->gc, x, y, w, h);
23 static void clear(struct test_target *tt) argument
25 fill_rect(tt,
27 0, 0, tt->width, tt
68 _put(struct test_target * tt,int x,int y,int w,int h,int color,int alu) argument
[all...]
/xsrc/external/mit/libxcb/dist/tests/
H A Dcheck_suites.h6 void suite_add_test(Suite *s, const TTest *tt, const char *name);

Completed in 23 milliseconds

123