st/mesa: remove extra calculation of sampler count
authorTimothy Arceri <t_arceri@yahoo.com.au>
Sat, 7 Jun 2014 02:02:56 +0000 (12:02 +1000)
committerTimothy Arceri <t_arceri@yahoo.com.au>
Sat, 7 Jun 2014 02:21:19 +0000 (12:21 +1000)
commit1454f894ff0df7eb3021584f0d1c1baa70444da5
treeeb7bcd58d8a98e1012a1a89b6c867d0c9f5b608d
parentd588a4919b732246b7aa26685ef65545929a4f7b
st/mesa: remove extra calculation of sampler count

This code was originally introduced to fix https://bugs.freedesktop.org/show_bug.cgi?id=53617. The comment says you need to pass NULL in order to unref old views however cso_set_sampler_views() already takes care of old views with the second for loop. Also as of 2355a6441435b8e66a032c44f0794066338e30a3 cso_set_sampler_views() passes the max of the old and new views to the driver for all state trackers making this code obsolete.

Signed-off-by: Timothy Arceri <t_arceri@yahoo.com.au>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_texture.c