radeonsi: add assertions into draw_vbo and check tessellation

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
Marek Olšák
2015-02-22 18:10:38 +01:00
parent 5aa5f90823
commit 99bf47f603
+7 -1
View File
@@ -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);