From: Kristian Høgsberg Kristensen Date: Thu, 10 Dec 2015 20:10:28 +0000 (-0800) Subject: i965: Assert that SYSTEM_VALUE_VERTEX_ID gets lowered X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b70616f3e7834386f96498d9a99f2ad11b292b5b;p=mesa.git i965: Assert that SYSTEM_VALUE_VERTEX_ID gets lowered fs_visitor::emit_vs_system_value() looks like it's trying to handle SYSTEM_VALUE_VERTEX_ID, but we should never see that value in the backend. Reviewed-by: Anuj Phogat Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index b6405cd5f0d..7036ad8b57c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -46,6 +46,7 @@ fs_visitor::emit_vs_system_value(int location) vs_prog_data->uses_vertexid = true; break; case SYSTEM_VALUE_VERTEX_ID: + unreachable("should have been lowered"); case SYSTEM_VALUE_VERTEX_ID_ZERO_BASE: reg->reg_offset = 2; vs_prog_data->uses_vertexid = true;