From 4bf91ca791844c16fda48f54386f1b30f6acefca Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Fri, 23 Aug 2013 11:43:26 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/brw_program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } } -- 2.30.2