From: Paul Berry Date: Fri, 23 Aug 2013 18:43:26 +0000 (-0700) Subject: i965: Don't try to fall back when creating unrecognized program targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bf91ca791844c16fda48f54386f1b30f6acefca;p=mesa.git i965: Don't try to fall back when creating unrecognized program targets. If brwNewProgram is asked to create a program for an unrecognized target, don't bother falling back on _mesa_new_program(). That just hides bugs. Reviewed-by: Matt Turner Reviewed-by: Anuj Phogat v2: Use assert() rather than _mesa_problem(). Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index c40d506750e..9a517be0b34 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -114,7 +114,8 @@ static struct gl_program *brwNewProgram( struct gl_context *ctx, } default: - return _mesa_new_program(ctx, target, id); + assert(!"Unsupported target in brwNewProgram()"); + return NULL; } }