summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2014-04-14 14:09:32 -0700
committerAnuj Phogat <[email protected]>2014-04-17 10:08:28 -0700
commit969b461c2b28efbf44ea02cd09c8c6593f4c7343 (patch)
tree132df348a87a891a09d7c1d375c16d2cbd3af549 /src/mesa/drivers/dri
parentbc86690f137a71a6f1cdcc0393a4b3f181df7240 (diff)
i965: Put an assertion to check valid varying_to_slot[varying]
Cc: <[email protected]> Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Chris Forbes <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/gen7_sol_state.c1
1 files changed, 1 insertions, 0 deletions
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;