softpipe: don't iterate through PIPE_MAX_SHADER_SAMPLER_VIEWS
authorRoland Scheidegger <sroland@vmware.com>
Wed, 28 Feb 2018 03:28:29 +0000 (04:28 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 28 Feb 2018 17:22:28 +0000 (18:22 +0100)
commit26103487b54a1c1121132cc040927619cce45262
treeea2b5ed8800653414fe98d813d97d461829ea7b3
parentb923f21eaadb77ee70e1bf4c5e2f9aee2a5fa205
softpipe: don't iterate through PIPE_MAX_SHADER_SAMPLER_VIEWS

We were setting view to NULL if the iteration was larger than i.
But in fact if the view is NULL the code did nothing anyway...

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_state_sampler.c