[PATCH 14/20] glamor: stub out lines

Keith Packard keithp at keithp.com
Sun Mar 23 22:28:01 PDT 2014


Eric Anholt <eric at anholt.net> writes:

> Keith Packard <keithp at keithp.com> writes:
>
>> Use mi line code for now
>
> x11perf -vseg100:
>
> x before
> + after
> +------------------------------------------------------------------------------+
> |          +                                                               x   |
> |          +                          +                                 x  x   |
> |+         + +  ++ ++        +        +   ++ +              x x  xxxxx  xx x xx|
> |        |_________M____A_____________|                          |____A_M___|  |
> +------------------------------------------------------------------------------+
>     N           Min           Max        Median           Avg        Stddev
> x  15        367000        393000        384000     381866.67      8043.335
> +  15        280000        345000        307000     313133.33     20979.128
> Difference at 95.0% confidence
> 	-68733.3 +/- 11881
> 	-17.9993% +/- 3.11129%
> 	(Student's t, pooled s = 15887.4)
>
> so, NAKed.

I wrote the obvious GL_LINES based code. Oddly, hardware line-setup does
better than software. These are fully conforming with the X requirements
for zero-width lines (the GL spec is sufficient for X, although you have
handle CapNotLast/other).

1: intel-glamor.perf
2: intel-glamor-line.perf

       1                 2                 Operation
------------   -------------------------   -------------------------
    297000.0    209000000.0 (   703.704)   1-pixel line segment 
    286000.0    191000000.0 (   667.832)   (xor) 1-pixel line segment 
    384000.0     10600000.0 (    27.604)   10-pixel line segment 
    343000.0      6860000.0 (    20.000)   (xor) 10-pixel line segment 
    325000.0      1060000.0 (     3.262)   100-pixel line segment 
    270000.0       685000.0 (     2.537)   (xor) 100-pixel line segment 
    148000.0       289000.0 (     1.953)   500-pixel line segment 
    121000.0       196000.0 (     1.620)   (xor) 500-pixel line segment 
    463000.0    134000000.0 (   289.417)   10-pixel horizontal line segment 
    410000.0     52900000.0 (   129.024)   (xor) 10-pixel horizontal line segment 
    459000.0      6550000.0 (    14.270)   100-pixel horizontal line segment 
    412000.0      3620000.0 (     8.786)   (xor) 100-pixel horizontal line segment 
    467000.0      4020000.0 (     8.608)   500-pixel horizontal line segment 
    408000.0      1870000.0 (     4.583)   (xor) 500-pixel horizontal line segment 
    460000.0      8770000.0 (    19.065)   10-pixel vertical line segment 
    406000.0      5900000.0 (    14.532)   (xor) 10-pixel vertical line segment 
    354000.0       851000.0 (     2.404)   100-pixel vertical line segment 
    351000.0       566000.0 (     1.613)   (xor) 100-pixel vertical line segment 
    160000.0       177000.0 (     1.106)   500-pixel vertical line segment 
    108000.0       117000.0 (     1.083)   (xor) 500-pixel vertical line segment 
    471000.0    231000000.0 (   490.446)   1-pixel line 
    411000.0    203000000.0 (   493.917)   (xor) 1-pixel line 
    456000.0     12200000.0 (    26.754)   10-pixel line 
    399000.0      8090000.0 (    20.276)   (xor) 10-pixel line 
    371000.0      1120000.0 (     3.019)   100-pixel line 
    302000.0       722000.0 (     2.391)   (xor) 100-pixel line 
    218000.0       296000.0 (     1.358)   500-pixel line 
    162000.0       198000.0 (     1.222)   (xor) 500-pixel line 

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140323/058d3d3b/attachment.sig>


More information about the xorg-devel mailing list