r600/sfn: Don't try to catch exceptions, the driver doesn't throw any

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3974>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3974>
This commit is contained in:
Gert Wollny
2020-02-27 08:14:15 +01:00
parent b66170b537
commit adcb365c1d
+5 -11
View File
@@ -659,18 +659,12 @@ int r600_shader_from_nir(struct r600_context *rctx,
sel->nir->info.clip_distance_array_size)) - 1;
}
// For learning we print out the complete failed shader
// and instead of asserts we use exceptions
bool r;
try {
struct r600_shader* gs_shader = nullptr;
if (rctx->gs_shader)
gs_shader = &rctx->gs_shader->current->shader;
r = convert.lower(sel->nir, pipeshader, sel, *key, gs_shader);
struct r600_shader* gs_shader = nullptr;
if (rctx->gs_shader)
gs_shader = &rctx->gs_shader->current->shader;
bool r = convert.lower(sel->nir, pipeshader, sel, *key, gs_shader);
} catch (std::logic_error& x) {
r = false;
}
if (!r || rctx->screen->b.debug_flags & DBG_ALL_SHADERS) {
static int shnr = 0;