From: Marek Olšák Date: Sun, 22 Feb 2015 17:10:38 +0000 (+0100) Subject: radeonsi: add assertions into draw_vbo and check tessellation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99bf47f603502cd6f3a6040ba17c0881e3b0c15f;p=mesa.git radeonsi: add assertions into draw_vbo and check tessellation Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 1793c2e6f91..ec8dd84c9dd 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -718,8 +718,14 @@ void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *info) (info->indexed || !info->count_from_stream_output)) return; - if (!sctx->ps_shader || !sctx->vs_shader) + if (!sctx->ps_shader || !sctx->vs_shader) { + assert(0); return; + } + if (!!sctx->tes_shader != (info->mode == PIPE_PRIM_PATCHES)) { + assert(0); + return; + } si_decompress_textures(sctx);