OSDN Git Service

st/mesa: st_atom_shader.c C99 tidy up
authorTimothy Arceri <t_arceri@yahoo.com.au>
Mon, 30 Jan 2017 23:34:59 +0000 (10:34 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 1 Feb 2017 21:31:28 +0000 (08:31 +1100)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom_shader.c

index 8c10ac9..f79afe0 100644 (file)
@@ -132,13 +132,11 @@ update_fp( struct st_context *st )
       _mesa_geometric_samples(st->ctx->DrawBuffer) > 1;
 
    if (stfp->ati_fs) {
-      unsigned u;
-
       if (st->ctx->Fog.Enabled) {
          key.fog = translate_fog_mode(st->ctx->Fog.Mode);
       }
 
-      for (u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
+      for (unsigned u = 0; u < MAX_NUM_FRAGMENT_REGISTERS_ATI; u++) {
          key.texture_targets[u] = get_texture_target(st->ctx, u);
       }
    }