i965: Add var->location != -1 assertions.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Dec 2014 21:44:04 +0000 (13:44 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Dec 2014 01:45:16 +0000 (17:45 -0800)
commitbcc7eb115ed6e74b87566bbc3a51c444814f1ebe
treefebee7305cff602bdf12609cd04e3bcdd4f13cd9
parentb5b18e46877d16877053c68e013c8217bb6a7b83
i965: Add var->location != -1 assertions.

We shouldn't receive variables with invalid locations set - adding these
assertions should help catch problems before they cause crashes later.

Inspired by similar code in st_glsl_to_tgsi.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp