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 <mattst88@gmail.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>

v2: Use assert() rather than _mesa_problem().

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Paul Berry 2013-08-23 11:43:26 -07:00
parent 46fd81e586
commit 4bf91ca791

View file

@ -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;
}
}