softpipe: Constify variables
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Fri, 11 Sep 2015 18:07:42 +0000 (20:07 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Sep 2015 21:37:00 +0000 (15:37 -0600)
commit2135aba8d99d5b0b5f73d97d4aac6a25d69de57c
tree6f4e28941a6113cd3b56a79bcab859bd1f7ac262
parent231687c19b3c6ab4f5bead7469b7b27fdbda6d43
softpipe: Constify variables

This commit makes a lot of variables constant - this is basically done
by moving the computation to variable definition. Some of them are
moved into lower scopes (like in img_filter_2d_ewa).

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/softpipe/sp_tex_sample.c