Lines Matching refs:target
96 static Picture source_pixmap(struct test_display *t, struct test_target *target, int format)
106 target->width, target->height,
115 0, 0, target->width, target->height/2);
117 0, target->height/2, target->width, target->height/2);
122 static Picture source_a8r8g8b8(struct test_display *t, struct test_target *target)
124 return source_pixmap(t, target, 0);
127 static Picture source_x8r8g8b8(struct test_display *t, struct test_target *target)
129 return source_pixmap(t, target, 1);
132 static Picture source_a8(struct test_display *t, struct test_target *target)
134 return source_pixmap(t, target, 2);
137 static Picture source_a4(struct test_display *t, struct test_target *target)
139 return source_pixmap(t, target, 3);
142 static Picture source_a1(struct test_display *t, struct test_target *target)
144 return source_pixmap(t, target, 3);
147 static Picture source_1x1r(struct test_display *t, struct test_target *target)
168 static Picture source_solid(struct test_display *t, struct test_target *target)
174 static Picture source_linear_horizontal(struct test_display *t, struct test_target *target)
178 XLinearGradient gradient = { {0, 0}, {target->width << 16, 0}};
183 static Picture source_linear_vertical(struct test_display *t, struct test_target *target)
187 XLinearGradient gradient = { {0, 0}, {0, target->height << 16}};
192 static Picture source_linear_diagonal(struct test_display *t, struct test_target *target)
196 XLinearGradient gradient = { {0, 0}, {target->width << 16, target->height << 16}};
201 static Picture source_radial_concentric(struct test_display *t, struct test_target *target)
207 ((target->width << 16) + 1) / 2,
208 ((target->height << 16) + 1) / 2,
212 ((target->width << 16) + 1) / 2,
213 ((target->height << 16) + 1) / 2,
214 target->width << 15,
221 static Picture source_radial_generic(struct test_display *t, struct test_target *target)
226 { 0, 0, target->width << 14, },
227 { target->width << 16, target->height << 16, target->width << 14, }
271 static Picture source_shm(struct test_display *t, struct test_target *target)
273 XShmSegmentInfo *shm = t->target == REF ? &shmref : &shmout;
283 target->width, target->height, 32);
290 size = target->width * target->height * 4;
298 static Picture source_shm(struct test_display *t, struct test_target *target) { return 0; }
320 static double _bench_source(struct test_display *t, enum target target_type,
324 struct test_target target;
329 test_target_create_render(t, target_type, &target);
330 XRenderFillRectangle(t->dpy, PictOpClear, target.picture, &render_color,
331 0, 0, target.width, target.height);
333 picture = source[src].create(t, &target);
338 picture, 0, target.picture,
342 target.width, target.height);
348 test_target_destroy_render(t, &target);
353 static void bench_source(struct test *t, enum target target, int op, int src)
362 ref = _bench_source(&t->ref, target, op, src, 1000);
370 out = _bench_source(&t->out, target, op, src, 1000);
379 static double _bench_mask(struct test_display *t, enum target target_type,
383 struct test_target target;
388 test_target_create_render(t, target_type, &target);
389 XRenderFillRectangle(t->dpy, PictOpClear, target.picture, &render_color,
390 0, 0, target.width, target.height);
392 ps = source[src].create(t, &target);
393 pm = source[mask].create(t, &target);
398 ps, pm, target.picture,
402 target.width, target.height);
412 test_target_destroy_render(t, &target);
417 static void bench_mask(struct test *t, enum target target, int op, int src, int mask)
427 ref = _bench_mask(&t->ref, target, op, src, mask, 1000);
435 out = _bench_mask(&t->out, target, op, src, mask, 1000);