svga: if we get nr_samples==1, store nr_samples=0
authorBrian Paul <brianp@vmware.com>
Thu, 3 Aug 2017 16:54:18 +0000 (10:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 18:07:05 +0000 (12:07 -0600)
commit3e39abf6a033cccbf2bbf85bf23785b7367cdcef
treeb333516f6699bfc9b4c180738f0022a9cca24ca1
parent3c71c42827766f66c300cf1f32679c33c54950c8
svga: if we get nr_samples==1, store nr_samples=0

We need to be more careful not to treat nr_samples=1 as an msaa surface.
This patch prevents us from errantly declaring an MSAA shader resource
with 1 sample.

No Piglit regressions, fixes the above-described errors.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c