i965: Create a shader_dispatch_mode enum to replace VS/GS fields.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Mar 2015 04:18:42 +0000 (21:18 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Jun 2015 19:45:40 +0000 (12:45 -0700)
commit0f8ec779ddff4126837a7d4216ecf1d4b97e93d2
tree28f425c12751bb3008cf45eb6d2cf1afd2f3710b
parent9945573d65f4f66d127df7cbb62648889d09a7ed
i965: Create a shader_dispatch_mode enum to replace VS/GS fields.

We used to store the GS dispatch mode in brw_gs_prog_data while
separately storing the VS dispatch mode in brw_vue_prog_data::simd8.

This patch introduces an enum to represent all possible dispatch modes,
and stores it in brw_vue_prog_data::dispatch_mode, unifying the two.

Based on a suggestion by Matt Turner.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs_surface_state.c
src/mesa/drivers/dri/i965/gen7_gs_state.c
src/mesa/drivers/dri/i965/gen8_gs_state.c
src/mesa/drivers/dri/i965/gen8_vs_state.c