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? <br><br><div class="gmail_quote">2010/12/3 fancy fang <span dir="ltr">&lt;<a href="mailto:fancyfly09@gmail.com">fancyfly09@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">So, according to your explaination, the driver PrepareAccess can not 
know exactly whether the pixmap is used to read or write. Well, what&#39;s 
the usage of the index passed to driver PrepareAccess? <br><br></div><div class="gmail_quote">2010/12/3 fancy fang <span dir="ltr">&lt;<a href="mailto:fancyfly09@gmail.com" target="_blank">fancyfly09@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
So, according to your explaination, the driver PrepareAccess can not know exactly whether the pixmap is used to read or write. Well, what&#39;s the usage of the index passed to driver PrepareAccess? <br><br><div class="gmail_quote">


2010/12/2 Maarten Maathuis <span dir="ltr">&lt;<a href="mailto:madman2003@gmail.com" target="_blank">madman2003@gmail.com</a>&gt;</span><div><div></div><div><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<div><div></div><div>On Thu, Dec 2, 2010 at 10:48 AM, fancy fang &lt;<a href="mailto:fancyfly09@gmail.com" target="_blank">fancyfly09@gmail.com</a>&gt; wrote:<br>
&gt; Dear all,<br>
&gt;            In xserver 1.9.0, there is an access array to cache previous<br>
&gt; results to reduce cost. Howver, this optimization would modify the original<br>
&gt; index and give the wrong index to driver PrepareAccess. Also, sometimes<br>
&gt; driver PrepareAccess need to know the pixmap is used to be read or written.<br>
&gt; Now, nobody can confirm that the driver PrepareAccess can get the right<br>
&gt; index now. Can someone exaplain this? Thanks!<br>
&gt;<br>
&gt; Best wishes,<br>
&gt;<br>
&gt; Fancy<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; <a href="mailto:xorg-devel@lists.x.org" target="_blank">xorg-devel@lists.x.org</a>: X.Org development<br>
&gt; Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
&gt; Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a><br>
&gt;<br>
<br>
In principle any index can be used to read and write. Often SRC and<br>
MASK will only be read and DST will be read-write (this also goes for<br>
the AUX indices), but it is possible for a pixmap to get a random<br>
index. Does that answer your question?<br>
<br>
Maarten.<br>
<font color="#888888"><br>
Maarten.<br>
</font></blockquote></div></div></div><br>
</blockquote></div></div></div><br>
</blockquote></div><br>