i965: Merge gen7_clip_state atom into gen6_clip_state atom.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 30 Aug 2016 20:16:02 +0000 (13:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 31 Aug 2016 19:42:09 +0000 (12:42 -0700)
commitbea048752ea95d5e074891f2131f54d6e0760538
tree64ef8e3808427c44846ae16f8661d34386f12bd3
parent4c116cbafb086653e3fcfb78128cc04b8c9264b1
i965: Merge gen7_clip_state atom into gen6_clip_state atom.

The original motivation was that gen6_clip_state ignored _NEW_POLYGON
as it didn't care about early culling.  The only other change was that
Gen6 ignored BRW_NEW_TES_PROG_DATA as it doesn't have tessellation
shaders, but listening to this is harmless as it'll never be signalled.

Now that we've added _NEW_POLYGON for is_drawing_lines/points, we can
merge the two as the distinction is meaningless.

This actually fixes a bug, though: Gen8+ was using the gen6_clip_state
atom because it doesn't care about early culling, but it also needs
BRW_NEW_TES_PROG_DATA, which was missing.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_state.h
src/mesa/drivers/dri/i965/brw_state_upload.c
src/mesa/drivers/dri/i965/gen6_clip_state.c