summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2013-08-23 11:43:26 -0700
committerPaul Berry <[email protected]>2013-08-26 08:55:39 -0700
commit4bf91ca791844c16fda48f54386f1b30f6acefca (patch)
tree6fcada2e4d95fcf2b9c66acaffc3cac71427f6ac /src/mesa
parent46fd81e586f0c1a76ab66b9a7558783c481f111e (diff)
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 <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> v2: Use assert() rather than _mesa_problem(). Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}