Mesa (gallium-0.2): cell: fix formatting

Brian Paul brianp at kemper.freedesktop.org
Tue Oct 7 22:18:34 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 3008657ceaec3f91386c767c51647729afe16b34
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3008657ceaec3f91386c767c51647729afe16b34

Author: Brian Paul <brian.paul at tungstengraphics.com>
Date:   Tue Oct  7 15:13:48 2008 -0600

cell: fix formatting

---

 src/gallium/drivers/cell/ppu/cell_gen_fp.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_gen_fp.c b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
index 8d2d4f2..5d16fc1 100644
--- a/src/gallium/drivers/cell/ppu/cell_gen_fp.c
+++ b/src/gallium/drivers/cell/ppu/cell_gen_fp.c
@@ -191,19 +191,16 @@ get_src_reg(struct codegen *gen,
       break;
    case TGSI_FILE_INPUT:
       {
-         if(swizzle == TGSI_EXTSWIZZLE_ONE)
-         {
+         if (swizzle == TGSI_EXTSWIZZLE_ONE) {
             /* Load const one float and early out */
             reg = get_const_one_reg(gen);
          }
-         else if(swizzle == TGSI_EXTSWIZZLE_ZERO)
-         {
+         else if (swizzle == TGSI_EXTSWIZZLE_ZERO) {
             /* Load const zero float and early out */
             reg = get_itemp(gen);
             spe_xor(gen->f, reg, reg, reg);
          }
-         else
-         {
+         else {
             /* offset is measured in quadwords, not bytes */
             int offset = src->SrcRegister.Index * 4 + swizzle;
             reg = get_itemp(gen);




More information about the mesa-commit mailing list