Lines Matching refs:out
46 static void render_copy(struct test_target *out,
49 int x = rand() % (2*out->width) - out->width;
50 int y = rand() % (2*out->height) - out->height;
51 int w = rand() % (2*out->width);
52 int h = rand() % (2*out->height);
58 _render_copy(out, x, y, w, h, red, green, blue, alpha);
82 static void basic_fill(struct test_target *out,
85 int x = rand() % (2*out->width) - out->width;
86 int y = rand() % (2*out->height) - out->height;
87 int w = rand() % (2*out->width);
88 int h = rand() % (2*out->height);
92 fill_rect(out, alu, color, x, y, w, h);
96 static void basic_copy(struct test_target *out,
99 int sx = rand() % (2*out->width) - ref->width;
100 int sy = rand() % (2*out->height) - ref->height;
101 int dx = rand() % (2*out->width) - ref->width;
102 int dy = rand() % (2*out->height) - ref->height;
103 int w = rand() % (2*out->width);
104 int h = rand() % (2*out->height);
109 XChangeGC(out->dpy->dpy, out->gc, GCFunction, &val);
110 XCopyArea(out->dpy->dpy,
111 out->draw, out->draw, out->gc,
145 static void basic_put(struct test_target *out,
148 int x = rand() % (2*out->width) - out->width;
149 int y = rand() % (2*out->height) - out->height;
150 int w = rand() % out->width;
151 int h = rand() % out->height;
155 _put(out, x, y, w, h, color, alu);
161 struct test_target out, ref;
174 test_target_create_render(&test->out, target, &out);
177 clear(&out);
181 ops[rand() % ARRAY_SIZE(ops)](&out, &ref);
184 out.draw, out.format,
186 0, 0, out.width, out.height,
191 test_target_destroy_render(&test->out, &out);