[Mesa-dev] [PATCH 1/3] st: st_atom_shader.c C99 tidy up

Edward O'Callaghan funfunctor at folklore1984.net
Wed Feb 1 01:05:25 UTC 2017


Patches 1,2&3 are,
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 02/01/2017 11:58 AM, Timothy Arceri wrote:
> From: Timothy Arceri <t_arceri at yahoo.com.au>
> 
> ---
>  src/mesa/state_tracker/st_atom_shader.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/src/mesa/state_tracker/st_atom_shader.c b/src/mesa/state_tracker/st_atom_shader.c
> index 8c10ac9..f79afe0 100644
> --- a/src/mesa/state_tracker/st_atom_shader.c
> +++ b/src/mesa/state_tracker/st_atom_shader.c
> @@ -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);
>        }
>     }
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170201/87ec3f54/attachment.sig>


More information about the mesa-dev mailing list