[Mesa-dev] [PATCH 14/25] i965/fs: Reindent emit_zip().

Francisco Jerez currojerez at riseup.net
Sat May 28 02:05:55 UTC 2016


---
 src/mesa/drivers/dri/i965/brw_fs.cpp | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 5d26c68..7dc7c5b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -5147,23 +5147,23 @@ emit_zip(const fs_builder &lbld, bblock_t *block, fs_inst *inst)
             inst->dst.component_size(inst->exec_size);
 
    if (needs_dst_copy(lbld, inst)) {
-   const fs_reg tmp = lbld.vgrf(inst->dst.type, dst_size);
+      const fs_reg tmp = lbld.vgrf(inst->dst.type, dst_size);
 
-   if (inst->predicate) {
-      /* Handle predication by copying the original contents of the
-       * destination into the temporary before emitting the lowered
-       * instruction.
-       */
-      for (unsigned k = 0; k < dst_size; ++k)
-         cbld.at(block, inst)
-             .MOV(offset(tmp, lbld, k), offset(dst, inst->exec_size, k));
-   }
+      if (inst->predicate) {
+         /* Handle predication by copying the original contents of
+          * the destination into the temporary before emitting the
+          * lowered instruction.
+          */
+         for (unsigned k = 0; k < dst_size; ++k)
+            cbld.at(block, inst)
+                .MOV(offset(tmp, lbld, k), offset(dst, inst->exec_size, k));
+      }
 
-   for (unsigned k = 0; k < dst_size; ++k)
-      cbld.at(block, inst->next)
-          .MOV(offset(dst, inst->exec_size, k), offset(tmp, lbld, k));
+      for (unsigned k = 0; k < dst_size; ++k)
+         cbld.at(block, inst->next)
+             .MOV(offset(dst, inst->exec_size, k), offset(tmp, lbld, k));
 
-   return tmp;
+      return tmp;
 
    } else {
       /* No need to allocate a temporary for the lowered instruction, just
-- 
2.7.3



More information about the mesa-dev mailing list