i965: Add Gen8+ VS dispatch_mode assertion.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 30 May 2015 18:19:28 +0000 (11:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 2 Jun 2015 05:08:54 +0000 (22:08 -0700)
Suggested by Ben Widawsky.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/gen8_vs_state.c

index 9bfde38c430c4b7f9aec0a7f19f60b435cab8458..28f5adddf14397627097c38cb74d8886ab72b229 100644 (file)
@@ -39,6 +39,9 @@ upload_vs_state(struct brw_context *brw)
    /* BRW_NEW_VS_PROG_DATA */
    const struct brw_vue_prog_data *prog_data = &brw->vs.prog_data->base;
 
+   assert(prog_data->dispatch_mode == DISPATCH_MODE_SIMD8 ||
+          prog_data->dispatch_mode == DISPATCH_MODE_4X2_DUAL_OBJECT);
+
    if (prog_data->base.use_alt_mode)
       floating_point_mode = GEN6_VS_FLOATING_POINT_MODE_ALT;