svga: fix texture buffer object regression
authorBrian Paul <brianp@vmware.com>
Fri, 30 Jun 2017 21:08:49 +0000 (14:08 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 3 Jul 2017 16:10:13 +0000 (10:10 -0600)
commite6d1cc31fa7a7252c07933a7e311fb0d8b331e12
treeac3b53db1c178d996b7062397da2be1d570152c1
parent6b4bf7e8be3cc0f350c701efa67313197881cf99
svga: fix texture buffer object regression

With change 8aba778fa2cd98a0b5a7429d3c5057778a0c808c we stopped binding
sampler objects for texture buffers.  That broke our texture sample /
sampler view setup code.

Now, we loop over the max(num samplers, num sampler views) and handle
the sampler and view information separately.  For texture buffers,
the sampler will be NULL but the sampler view non-null.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_shader.c