mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
freedreno/a6xx: bail instead of crash for compile fails
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5907>
This commit is contained in:
parent
b3ca55f5aa
commit
afadaaef39
1 changed files with 6 additions and 0 deletions
|
|
@ -178,10 +178,16 @@ fd6_draw_vbo(struct fd_context *ctx, const struct pipe_draw_info *info,
|
|||
.primitive_restart = info->primitive_restart && info->index_size,
|
||||
};
|
||||
|
||||
if (!(ctx->prog.vs && ctx->prog.fs))
|
||||
return false;
|
||||
|
||||
if (info->mode == PIPE_PRIM_PATCHES) {
|
||||
emit.key.hs = ctx->prog.hs;
|
||||
emit.key.ds = ctx->prog.ds;
|
||||
|
||||
if (!(ctx->prog.hs && ctx->prog.ds))
|
||||
return false;
|
||||
|
||||
shader_info *ds_info = &emit.key.ds->nir->info;
|
||||
emit.key.key.tessellation = ir3_tess_mode(ds_info->tess.primitive_mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue