Q: puzzle about the index of PrepareAccess

2010-12-02 Thread fancy fang
Dear all,
   In xserver 1.9.0, there is an access array to cache previous
results to reduce cost. Howver, this optimization would modify the original
index and give the wrong index to driver PrepareAccess. Also, sometimes
driver PrepareAccess need to know the pixmap is used to be read or written.
Now, nobody can confirm that the driver PrepareAccess can get the right
index now. Can someone exaplain this? Thanks!

Best wishes,

Fancy
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Q: puzzle about the index of PrepareAccess

2010-12-02 Thread fancy fang
So, according to your explaination, the driver PrepareAccess can not know
exactly whether the pixmap is used to read or write. Well, what's the usage
of the index passed to driver PrepareAccess?

2010/12/3 fancy fang fancyfl...@gmail.com

 So, according to your explaination, the driver PrepareAccess can not know
 exactly whether the pixmap is used to read or write. Well, what's the usage
 of the index passed to driver PrepareAccess?

 2010/12/3 fancy fang fancyfl...@gmail.com

 So, according to your explaination, the driver PrepareAccess can not know
 exactly whether the pixmap is used to read or write. Well, what's the usage
 of the index passed to driver PrepareAccess?

 2010/12/2 Maarten Maathuis madman2...@gmail.com

 On Thu, Dec 2, 2010 at 10:48 AM, fancy fang fancyfl...@gmail.com wrote:
  Dear all,
 In xserver 1.9.0, there is an access array to cache previous
  results to reduce cost. Howver, this optimization would modify the
 original
  index and give the wrong index to driver PrepareAccess. Also, sometimes
  driver PrepareAccess need to know the pixmap is used to be read or
 written.
  Now, nobody can confirm that the driver PrepareAccess can get the right
  index now. Can someone exaplain this? Thanks!
 
  Best wishes,
 
  Fancy
 
  ___
  xorg-devel@lists.x.org: X.Org development
  Archives: http://lists.x.org/archives/xorg-devel
  Info: http://lists.x.org/mailman/listinfo/xorg-devel
 

 In principle any index can be used to read and write. Often SRC and
 MASK will only be read and DST will be read-write (this also goes for
 the AUX indices), but it is possible for a pixmap to get a random
 index. Does that answer your question?

 Maarten.

 Maarten.




___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Q: puzzle about the index of PrepareAccess

2010-12-02 Thread fancy fang
So, according to your explaination, the driver PrepareAccess can not know
exactly whether the pixmap is used to read or write. Well, what's the usage
of the index passed to driver PrepareAccess?

2010/12/3 fancy fang fancyfl...@gmail.com

 So, according to your explaination, the driver PrepareAccess can not know
 exactly whether the pixmap is used to read or write. Well, what's the usage
 of the index passed to driver PrepareAccess?

 2010/12/3 fancy fang fancyfl...@gmail.com

 So, according to your explaination, the driver PrepareAccess can not know
 exactly whether the pixmap is used to read or write. Well, what's the usage
 of the index passed to driver PrepareAccess?

 2010/12/3 fancy fang fancyfl...@gmail.com

 So, according to your explaination, the driver PrepareAccess can not know
 exactly whether the pixmap is used to read or write. Well, what's the usage
 of the index passed to driver PrepareAccess?

 2010/12/2 Maarten Maathuis madman2...@gmail.com

 On Thu, Dec 2, 2010 at 10:48 AM, fancy fang fancyfl...@gmail.com
 wrote:
  Dear all,
 In xserver 1.9.0, there is an access array to cache
 previous
  results to reduce cost. Howver, this optimization would modify the
 original
  index and give the wrong index to driver PrepareAccess. Also,
 sometimes
  driver PrepareAccess need to know the pixmap is used to be read or
 written.
  Now, nobody can confirm that the driver PrepareAccess can get the
 right
  index now. Can someone exaplain this? Thanks!
 
  Best wishes,
 
  Fancy
 
  ___
  xorg-devel@lists.x.org: X.Org development
  Archives: http://lists.x.org/archives/xorg-devel
  Info: http://lists.x.org/mailman/listinfo/xorg-devel
 

 In principle any index can be used to read and write. Often SRC and
 MASK will only be read and DST will be read-write (this also goes for
 the AUX indices), but it is possible for a pixmap to get a random
 index. Does that answer your question?

 Maarten.

 Maarten.





___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Where to free screen pixmap driver private?

2010-11-22 Thread fancy fang
Dear all,
   If I use driver pixmap, the screen pixmap also has an allocated
driver private. However, when xorg terminates, the driver DestroyPixmap can
not be executed. So, the screen pixmap driver private can not be freed. Is
this a bug? Can anyone explain it?  Thanks a lot!

Best wishes,
Fancy Fang
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: tiling support in EXA

2010-11-22 Thread fancy fang
Thanks a lot! This is very useful.

Best wishes,

Fancy

2010/10/20 Alex Deucher alexdeuc...@gmail.com

 On Tue, Oct 19, 2010 at 9:58 PM, fancy fang fancyfl...@gmail.com wrote:
  Hello, all
   CreatePixmap2 was added to ExaDriverRec for drivers with tiling
  support. I can not understand what the tiling means. Anyone can explain
 for
  me? Thanks a lot!

 Tiling is a method of laying out data in the framebuffer to maximize
 cache locality and memoy bandwidth.  See this post for a more detailed
 description:
 http://www.phoronix.com/forums/showpost.php?p=131301postcount=37

 Alex

 
  Best wishes,
 
  Fancy
 
  ___
  xorg-devel@lists.x.org: X.Org development
  Archives: http://lists.x.org/archives/xorg-devel
  Info: http://lists.x.org/mailman/listinfo/xorg-devel
 

___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

tiling support in EXA

2010-10-19 Thread fancy fang
Hello, all
 CreatePixmap2 was added to ExaDriverRec for drivers with tiling
support. I can not understand what the tiling means. Anyone can explain for
me? Thanks a lot!

Best wishes,

Fancy
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Mixed pixmap creation

2010-10-14 Thread fancy fang
Dear all,
   In exaCreatePixmap_mixed from Xserver 1.9.0, when w == 1  h ==
1, it will malloc pixmap data immediately. Please let me name this kind of
pixmap as Unit Pixmap. First, I don't know what the benifit is. Second, when
the exaDoMigration_mixed is executed, it will allocate driver pixmap for
Unit Pixmap. But, I think the driver pixmap for Unit Pixmap is not necessary
from the point of performance. Can anyone give explanations ?  Thanks a lot!

Best wishes,

FancyFang
___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Mixed pixmap creation

2010-10-14 Thread fancy fang
Thanks! But,  I still can not understand why Unit Pixmap needs both system
buffer and driver buffer? In my opinion, Unit Pixmap only needs system
buffer. Welcome your opinions!

Fancy Fang

2010/10/14 Jonathan Morton jonathan.mor...@movial.com

 On Thu, 2010-10-14 at 16:18 +0800, fancy fang wrote:
  In exaCreatePixmap_mixed from Xserver 1.9.0, when w == 1  h == 1, it
  will malloc pixmap data immediately. Please let me name this kind of
  pixmap as Unit Pixmap. First, I don't know what the benifit is.
  Second, when the exaDoMigration_mixed is executed, it will allocate
  driver pixmap for Unit Pixmap. But, I think the driver pixmap for Unit
  Pixmap is not necessary from the point of performance. Can anyone give
  explanations ?

 Single-pixel pixmaps are used to represent solid colours, by setting the
 repeat mode.  These are useful for XRender.

 --
 --
 From: Jonathan Morton
  jonathan.mor...@movial.com



___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Re: Mixed pixmap creation

2010-10-14 Thread fancy fang
Great! I almost understand what you mean. However, I wonder why Unit Pixmap
needs a system buffer and the system buffer is malloced
in exaCreatePixmap_mixed instead of other places, such as
exaDoPrepareAccess_mixed. Thanks!

FancyFang

2010/10/14 Jonathan Morton jonathan.mor...@movial.com

 On Thu, 2010-10-14 at 16:43 +0800, fancy fang wrote:
  Thanks! But,  I still can not understand why Unit Pixmap needs both
  system buffer and driver buffer? In my opinion, Unit Pixmap only needs
  system buffer. Welcome your opinions!

 Because the driver needs to see the colour of this pixel, if it
 accelerates an operation involving this solid colour.  This is extremely
 common, eg. for rendering text the solid colour is combined with a mask
 defining the shape of the letters.

 --
 --
 From: Jonathan Morton
  jonathan.mor...@movial.com



___
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel