From: Westermann Fu Subject: direct I/O instruction access to graphics register is sync with CPU? Date: Thu, 11 Feb 2010 14:08:40 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8836512917693104602==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org --===============8836512917693104602== Content-Type: multipart/alternative; boundary=00c09f905fb090883f047f4cfb78 --00c09f905fb090883f047f4cfb78 Content-Type: text/plain; charset=ISO-8859-1 Hi, friends: Sorry for my stupid question but I think right here can help me. As I know, DMA/CommandParser or no matter what you call can provide asynchronous execuation of graphics commands with CPU execution, and the direct I/O of course is synchronous with instructions executed on CPU, but what is here 'synchronous' means? I take an example of direct I/O triangle setting for 3D engine to render triangle as the below piece of code: /* ** set graphics contexts */ /* ** using direct I/O to write 3 vertex data to 3D engine ** register for rendering a triangle */ movl vertex_data1, VP_register movl vertex_data2, VP_register movl vertex_data3, VP_register does 'synchronous' mean CPU won't finish the last one mov instruction until the 3D engine finish rendering this triangle? Or whatever other meaning? Thanks very much. Regards --00c09f905fb090883f047f4cfb78 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, friends:

Sorry for my stupid question but I think right here can= help me.

As I know, DMA/CommandParser or no matter what you call ca= n provide asynchronous execuation of graphics commands with CPU execution, = and the direct I/O of course is synchronous with instructions executed on C= PU, but what is here 'synchronous' means? I take an example of dire= ct I/O triangle setting for 3D engine to render triangle as the below piece= of code:

/*
=A0** set graphics contexts
=A0*/

/*
** using direct= I/O to write 3 vertex data to 3D engine=A0=A0=A0=A0=A0=A0=A0=A0 ** registe= r for rendering a triangle
=A0*/
movl vertex_data1,=A0 VP_registermovl vertex_data2,=A0 VP_register
movl vertex_data3,=A0 VP_register

does 'synchronous' mean CP= U won't finish the last one mov instruction until the 3D engine finish = rendering this triangle? Or whatever other meaning? Thanks very much.

Regards
=A0


--00c09f905fb090883f047f4cfb78-- --===============8836512917693104602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev --===============8836512917693104602== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel --===============8836512917693104602==--