Mesa (master): radeonsi: fix assertion in si_bind_vs_sampler

Christian König deathsimple at kemper.freedesktop.org
Mon Jul 30 13:03:01 UTC 2012


Module: Mesa
Branch: master
Commit: ad15c8c0f199e293b5c49a9c614cfaa19edb9a62
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad15c8c0f199e293b5c49a9c614cfaa19edb9a62

Author: Christian König <deathsimple at vodafone.de>
Date:   Wed Jul 25 22:45:08 2012 +0200

radeonsi: fix assertion in si_bind_vs_sampler

Signed-off-by: Christian König <deathsimple at vodafone.de>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>

---

 src/gallium/drivers/radeonsi/si_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c
index a80e169..3da236c 100644
--- a/src/gallium/drivers/radeonsi/si_state.c
+++ b/src/gallium/drivers/radeonsi/si_state.c
@@ -1973,7 +1973,7 @@ out:
 
 static void si_bind_vs_sampler(struct pipe_context *ctx, unsigned count, void **states)
 {
-	assert(0);
+	assert(count == 0);
 }
 
 static void si_bind_ps_sampler(struct pipe_context *ctx, unsigned count, void **states)




More information about the mesa-commit mailing list