diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-30 11:49:51 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-30 11:49:51 -0700 |
commit | 41bdf4cf4c924e4c04c62dc144584cf7ead3cf44 (patch) | |
tree | e8d0a9083ce3a48cbffa8ba9edc2f719c4095dfb /src/mesa/pipe/cell/spu/spu_main.h | |
parent | da6eac242d9b79ad77389b6ab579804bc0261005 (diff) |
Cell: make wait_on_mask() static/inlined
Diffstat (limited to 'src/mesa/pipe/cell/spu/spu_main.h')
-rw-r--r-- | src/mesa/pipe/cell/spu/spu_main.h | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_main.h b/src/mesa/pipe/cell/spu/spu_main.h index 009e046ba5..8908bf8bc0 100644 --- a/src/mesa/pipe/cell/spu/spu_main.h +++ b/src/mesa/pipe/cell/spu/spu_main.h @@ -29,6 +29,8 @@ #define SPU_MAIN_H +#include <spu_mfcio.h> + #include "pipe/cell/common.h" #include "pipe/draw/draw_vertex.h" #include "pipe/p_state.h" @@ -90,8 +92,25 @@ extern boolean Debug; -extern void -wait_on_mask(unsigned tag); +static INLINE void +wait_on_mask(unsigned tagMask) +{ + mfc_write_tag_mask( tagMask ); + /* wait for completion of _any_ DMAs specified by tagMask */ + mfc_read_tag_status_any(); +} + + +static INLINE void +wait_on_mask_all(unsigned tagMask) +{ + mfc_write_tag_mask( tagMask ); + /* wait for completion of _any_ DMAs specified by tagMask */ + mfc_read_tag_status_all(); +} + + + static INLINE void |