From 969b461c2b28efbf44ea02cd09c8c6593f4c7343 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Mon, 14 Apr 2014 14:09:32 -0700 Subject: i965: Put an assertion to check valid varying_to_slot[varying] Cc: Signed-off-by: Anuj Phogat Reviewed-by: Chris Forbes Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen7_sol_state.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/dri/i965/gen7_sol_state.c b/src/mesa/drivers/dri/i965/gen7_sol_state.c index 1b58efbf829..06a4cdf36c9 100644 --- a/src/mesa/drivers/dri/i965/gen7_sol_state.c +++ b/src/mesa/drivers/dri/i965/gen7_sol_state.c @@ -132,6 +132,7 @@ gen7_upload_3dstate_so_decl_list(struct brw_context *brw, buffer_mask |= 1 << buffer; decl |= buffer << SO_DECL_OUTPUT_BUFFER_SLOT_SHIFT; + assert(vue_map->varying_to_slot[varying] >= 0); decl |= vue_map->varying_to_slot[varying] << SO_DECL_REGISTER_INDEX_SHIFT; decl |= component_mask << SO_DECL_COMPONENT_MASK_SHIFT; -- cgit v1.2.3