draw: s/unsigned/enum tgsi_semantic/
authorBrian Paul <brianp@vmware.com>
Tue, 11 Jul 2017 14:12:49 +0000 (08:12 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 12 Jul 2017 16:58:02 +0000 (10:58 -0600)
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_wide_point.c
src/gallium/auxiliary/draw/draw_vs_exec.c

index adb6120d834e2d9ed929b457df58789db88a0851..1329ab4e7c0bb29444cf4e0629a6d051fa39a9a8 100644 (file)
@@ -76,7 +76,7 @@ struct widepoint_stage {
    uint texcoord_gen_slot[PIPE_MAX_SHADER_OUTPUTS];
 
    /* TGSI_SEMANTIC to which sprite_coord_enable applies */
-   unsigned sprite_coord_semantic;
+   enum tgsi_semantic sprite_coord_semantic;
 
    int psize_slot;
 };
@@ -242,7 +242,7 @@ widepoint_first_point(struct draw_stage *stage,
        */
       for (i = 0; i < fs->info.num_inputs; i++) {
          int slot;
-         const unsigned sn = fs->info.input_semantic_name[i];
+         const enum tgsi_semantic sn = fs->info.input_semantic_name[i];
          const unsigned si = fs->info.input_semantic_index[i];
 
          if (sn == wide->sprite_coord_semantic) {
index 5125eb4dff13f10c92fe35908d83a7cb9eb35b34..9e1db4abeedde263a4e9514d33b7353a61f458bc 100644 (file)
@@ -169,7 +169,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
        */
       for (j = 0; j < max_vertices; j++) {
          for (slot = 0; slot < shader->info.num_outputs; slot++) {
-            unsigned name = shader->info.output_semantic_name[slot];
+            enum tgsi_semantic name = shader->info.output_semantic_name[slot];
             if(clamp_vertex_color &&
                   (name == TGSI_SEMANTIC_COLOR || name == TGSI_SEMANTIC_BCOLOR))
             {