summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2012-11-20 17:02:23 -0800
committerKenneth Graunke <[email protected]>2012-11-26 19:52:34 -0800
commitdd1fd300473bd58929e5a1b1a5e5a0e82af9d7cf (patch)
tree53ffa6ffc709abec734c46ec800c38a24e379520 /src/mesa/drivers
parentcd0acb1abe4c2c3120acf18f594210989bd8ec2e (diff)
i965/fs: Abort on unsupported opcodes rather than failing.
Final code generation should never fail. This is a bug, and there should be no user-triggerable cases where this could occur. Also, we're not going to have a fail() method in a moment. v2: Just abort() rather than assert, to cover the NDEBUG case (suggested by Eric). Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_emit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
index 4a1700b8fdb..f04d90db1f7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp
@@ -1012,7 +1012,7 @@ fs_visitor::generate_code()
} else {
_mesa_problem(ctx, "Unsupported opcode %d in FS", inst->opcode);
}
- fail("unsupported opcode in FS\n");
+ abort();
}
if (unlikely(INTEL_DEBUG & DEBUG_WM)) {