freedreno: fix bind_sampler_states when hwcso is NULL
authorSerge Martin <edb+mesa@sigluy.net>
Sun, 6 Dec 2015 14:32:15 +0000 (15:32 +0100)
committerRob Clark <robclark@freedesktop.org>
Wed, 9 Dec 2015 22:30:58 +0000 (17:30 -0500)
commite63fec29a1bde71a707ee6ac89763896e33e3c0c
tree6ec2aff0b57ea7653ed83d9a720f7884a3754575
parentf32f80e19d2f772b29ab3f3346ca524be356989e
freedreno: fix bind_sampler_states when hwcso is NULL

src/gallium/tests/trivial/compute.c expects samplers to be cleaned
when the samplers list is NULL.
Like in radeon, the function behave like when the number of samplers
parameter is set to 0.

[small s/hwsco/hwcso/ typo fix]
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a2xx/fd2_texture.c
src/gallium/drivers/freedreno/a3xx/fd3_texture.c
src/gallium/drivers/freedreno/a4xx/fd4_texture.c