vrend: Cleanup and fix bug in next_sampler_id tracking

Merged Ryan Neph requested to merge ryanneph/virglrenderer:factorio-sampler into master
  • First 5 commits are pure refactor to improve readability/maintainability in bind_*_locs() functions.

  • Commit 6 fixes #227 (closed) which regressed rendering correctness for Factorio in c08c8419.

  • Last commit silences an annoying and useless message when the guest indicates that no sampling parameter updates need to occur for a given texture unit.

Edited by Ryan Neph

Merge request reports