mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
radeonsi: add assertions into draw_vbo and check tessellation
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
This commit is contained in:
parent
5aa5f90823
commit
99bf47f603
1 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue