summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-03-25 16:56:29 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-13 15:24:54 -0700
commitf0c5c1c49bfbae402b11367103acae7675edf779 (patch)
tree93d190ecdbdd41693805cf713e3ba62984004fa2
parenta2f8e2cf966156b2ce93e16068c31e088c578eda (diff)
Ensure that 100x100 rectangles do not overlap
This avoids the obvious optimization which catch overlapping rectangles to avoid re-rendering the same pixels. Part-of: <https://gitlab.freedesktop.org/xorg/test/x11perf/-/merge_requests/1>
-rw-r--r--do_tests.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/do_tests.c b/do_tests.c
index ebcc7cc..35b7aad 100644
--- a/do_tests.c
+++ b/do_tests.c
@@ -45,7 +45,7 @@ Test test[] = {
{"-rect100", "100x100 rectangle", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
- {36, 100, NULL, NULL, FillSolid}},
+ {25, 100, NULL, NULL, FillSolid}},
{"-rect500", "500x500 rectangle", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
@@ -64,7 +64,7 @@ Test test[] = {
"100x100 stippled rectangle (8x8 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
- {36, 100, NULL, NULL, FillStippled}},
+ {25, 100, NULL, NULL, FillStippled}},
{"-srect500", "500x500 stippled rectangle",
"500x500 stippled rectangle (8x8 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -84,7 +84,7 @@ Test test[] = {
"100x100 opaque stippled rectangle (8x8 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
- {36, 100, NULL, NULL, FillOpaqueStippled}},
+ {25, 100, NULL, NULL, FillOpaqueStippled}},
{"-osrect500", "500x500 opaque stippled rectangle",
"500x500 opaque stippled rectangle (8x8 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -104,7 +104,7 @@ Test test[] = {
"100x100 tiled rectangle (4x4 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
- {36, 100, NULL, NULL, FillTiled}},
+ {25, 100, NULL, NULL, FillTiled}},
{"-tilerect500", "500x500 4x4 tiled rectangle",
"500x500 tiled rectangle (4x4 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -121,7 +121,7 @@ Test test[] = {
{"-oddsrect100", "100x100 stippled rectangle (17x15 stipple)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
- {36, 100, "OddTile", NULL, FillStippled}},
+ {25, 100, "OddTile", NULL, FillStippled}},
{"-oddsrect500", "500x500 stippled rectangle (17x15 stipple)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
@@ -137,7 +137,7 @@ Test test[] = {
{"-oddosrect100", "100x100 opaque stippled rectangle (17x15 stipple)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
- {36, 100, "OddTile", NULL, FillOpaqueStippled}},
+ {25, 100, "OddTile", NULL, FillOpaqueStippled}},
{"-oddosrect500", "500x500 opaque stippled rectangle (17x15 stipple)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
@@ -153,7 +153,7 @@ Test test[] = {
{"-oddtilerect100", "100x100 tiled rectangle (17x15 tile)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
- {36, 100, "OddTile", NULL, FillTiled}},
+ {25, 100, "OddTile", NULL, FillTiled}},
{"-oddtilerect500", "500x500 tiled rectangle (17x15 tile)", NULL,
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_4FEATURE, ROP, 0,
@@ -172,7 +172,7 @@ Test test[] = {
"100x100 stippled rectangle (161x145 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_3FEATURE, ROP, 0,
- {36, 100, "mensetmanus", NULL, FillStippled}},
+ {25, 100, "mensetmanus", NULL, FillStippled}},
{"-bigsrect500", "500x500 161x145 stippled rectangle",
"500x500 stippled rectangle (161x145 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -192,7 +192,7 @@ Test test[] = {
"100x100 opaque stippled rectangle (161x145 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_3FEATURE, ROP, 0,
- {36, 100, "mensetmanus", NULL, FillOpaqueStippled}},
+ {25, 100, "mensetmanus", NULL, FillOpaqueStippled}},
{"-bigosrect500", "500x500 161x145 opaque stippled rectangle",
"500x500 opaque stippled rectangle (161x145 stipple)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -212,7 +212,7 @@ Test test[] = {
"100x100 tiled rectangle (161x145 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_2FEATURE, ROP, 0,
- {36, 100, "mensetmanus", NULL, FillTiled}},
+ {25, 100, "mensetmanus", NULL, FillTiled}},
{"-bigtilerect500", "500x500 161x145 tiled rectangle",
"500x500 tiled rectangle (161x145 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
@@ -232,7 +232,7 @@ Test test[] = {
"100x100 tiled rectangle (216x208 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,
V1_3FEATURE, ROP, 0,
- {36, 100, "escherknot", NULL, FillTiled}},
+ {25, 100, "escherknot", NULL, FillTiled}},
{"-eschertilerect500", "500x500 216x208 tiled rectangle",
"500x500 tiled rectangle (216x208 tile)",
InitRectangles, DoRectangles, NullProc, EndRectangles,