diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-02 15:23:51 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-02 15:23:51 -0700 |
commit | 88b715b049efa81f4021d642a963b58113a875cf (patch) | |
tree | ace902bbc0480836b8d1e17cfb37528c5715db0f /src/mesa/pipe/cell/spu/main.c | |
parent | 233c374d02a99ecd0c2ddc6f11f305ae8783fc97 (diff) |
Initial Cell driver infrastructure.
No real code yet. Just stand-ins and make/build infrastructure.
Diffstat (limited to 'src/mesa/pipe/cell/spu/main.c')
-rw-r--r-- | src/mesa/pipe/cell/spu/main.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/spu/main.c b/src/mesa/pipe/cell/spu/main.c new file mode 100644 index 0000000000..e8d5fdccbf --- /dev/null +++ b/src/mesa/pipe/cell/spu/main.c @@ -0,0 +1,29 @@ +/* main.c for cell SPU code */ + + +#include <stdio.h> +#include <libmisc.h> +#include <spu_mfcio.h> + +#include "tri.h" +#include "pipe/cell/common.h" + + +static struct init_info init; + + +int +main(unsigned long long speid, + unsigned long long argp, + unsigned long long envp) +{ + int tag = 0; + + mfc_get(&init, (unsigned int) argp, sizeof(struct init_info), tag, 0, 0); + + printf("Enter spu main(): init.foo=%d\n", init.foo); + + draw_triangle(0, 1, 2); + + return 0; +} |