diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-30 15:26:51 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-30 15:26:51 -0700 |
commit | 24f0e54c1b9ff43dcb75758c8e0faba355c0617c (patch) | |
tree | 88663feaf5dc40f55e591df018769723ce8824bc /src/mesa/pipe/cell/spu/spu_main.h | |
parent | 7b149449df3a7de62f79eb96d5b722cc9d3b5912 (diff) |
Cell: start to SIMD-ize triangle attribute interpolation
Using the spu_add(), etc intrinsics.
About a 15% speed-up with some tests.
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_main.h')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.h b/src/mesa/pipe/cell/spu/spu_main.h index 8908bf8bc0..73f9ed29d6 100644 --- a/src/mesa/pipe/cell/spu/spu_main.h +++ b/src/mesa/pipe/cell/spu/spu_main.h @@ -36,6 +36,13 @@ #include "pipe/p_state.h" +typedef union +{ + vector float v; + float f[4]; +} float4; + + struct spu_framebuffer { void *color_start; /**< addr of color surface in main memory */ void *depth_start; /**< addr of depth surface in main memory */ |