Module: Mesa
Branch: master
Commit: 42246ab1f5f985aba97d3d7ebc178b02ec6c316e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=42246ab1f5f985aba97d3d7ebc178b02ec6c316e

Author: Brian Paul <[email protected]>
Date:   Mon Feb  8 09:29:38 2016 -0700

tgsi: s/true/TRUE/ in tgsi_scan.c

Just to be consistent.

Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>

---

 src/gallium/auxiliary/tgsi/tgsi_scan.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.c 
b/src/gallium/auxiliary/tgsi/tgsi_scan.c
index a7d4b0c..42b62aa 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_scan.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_scan.c
@@ -89,13 +89,13 @@ scan_instruction(struct tgsi_shader_info *info,
       case TGSI_INTERPOLATE_PERSPECTIVE:
          switch (fullinst->Instruction.Opcode) {
          case TGSI_OPCODE_INTERP_CENTROID:
-            info->uses_persp_opcode_interp_centroid = true;
+            info->uses_persp_opcode_interp_centroid = TRUE;
             break;
          case TGSI_OPCODE_INTERP_OFFSET:
-            info->uses_persp_opcode_interp_offset = true;
+            info->uses_persp_opcode_interp_offset = TRUE;
             break;
          case TGSI_OPCODE_INTERP_SAMPLE:
-            info->uses_persp_opcode_interp_sample = true;
+            info->uses_persp_opcode_interp_sample = TRUE;
             break;
          }
          break;
@@ -103,13 +103,13 @@ scan_instruction(struct tgsi_shader_info *info,
       case TGSI_INTERPOLATE_LINEAR:
          switch (fullinst->Instruction.Opcode) {
          case TGSI_OPCODE_INTERP_CENTROID:
-            info->uses_linear_opcode_interp_centroid = true;
+            info->uses_linear_opcode_interp_centroid = TRUE;
             break;
          case TGSI_OPCODE_INTERP_OFFSET:
-            info->uses_linear_opcode_interp_offset = true;
+            info->uses_linear_opcode_interp_offset = TRUE;
             break;
          case TGSI_OPCODE_INTERP_SAMPLE:
-            info->uses_linear_opcode_interp_sample = true;
+            info->uses_linear_opcode_interp_sample = TRUE;
             break;
          }
          break;
@@ -118,7 +118,7 @@ scan_instruction(struct tgsi_shader_info *info,
 
    if (fullinst->Instruction.Opcode >= TGSI_OPCODE_F2D &&
        fullinst->Instruction.Opcode <= TGSI_OPCODE_DSSG)
-      info->uses_doubles = true;
+      info->uses_doubles = TRUE;
 
    for (i = 0; i < fullinst->Instruction.NumSrcRegs; i++) {
       const struct tgsi_full_src_register *src = &fullinst->Src[i];
@@ -265,26 +265,26 @@ scan_declaration(struct tgsi_shader_info *info,
             case TGSI_INTERPOLATE_PERSPECTIVE:
                switch (fulldecl->Interp.Location) {
                case TGSI_INTERPOLATE_LOC_CENTER:
-                  info->uses_persp_center = true;
+                  info->uses_persp_center = TRUE;
                   break;
                case TGSI_INTERPOLATE_LOC_CENTROID:
-                  info->uses_persp_centroid = true;
+                  info->uses_persp_centroid = TRUE;
                   break;
                case TGSI_INTERPOLATE_LOC_SAMPLE:
-                  info->uses_persp_sample = true;
+                  info->uses_persp_sample = TRUE;
                   break;
                }
                break;
             case TGSI_INTERPOLATE_LINEAR:
                switch (fulldecl->Interp.Location) {
                case TGSI_INTERPOLATE_LOC_CENTER:
-                  info->uses_linear_center = true;
+                  info->uses_linear_center = TRUE;
                   break;
                case TGSI_INTERPOLATE_LOC_CENTROID:
-                  info->uses_linear_centroid = true;
+                  info->uses_linear_centroid = TRUE;
                   break;
                case TGSI_INTERPOLATE_LOC_SAMPLE:
-                  info->uses_linear_sample = true;
+                  info->uses_linear_sample = TRUE;
                   break;
                }
                break;

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to