i965/Gen4-5: Set clip flags from clip distances
authorChris Forbes <chrisf@ijw.co.nz>
Sat, 3 Aug 2013 15:32:34 +0000 (03:32 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 15 Aug 2013 19:24:55 +0000 (07:24 +1200)
commit3b738f5f85abc5dd0d1f735dc1a56fcf24308323
treefa5c68256bd6757e8a025cc2e69d52a9f654f442
parenta9be50f77675a70a44d231fc1f7fa85f875c5153
i965/Gen4-5: Set clip flags from clip distances

V2: - Use the new VS_OPCODE_UNPACK_FLAGS_SIMD4X2 to correctly split the
      flags for the two vertices being processed together.
    - Don't apply bogus masking of clip flags. The set of plane enables
      aren't included in the shader key, and we wouldn't want the
      recompiles anyway.

V3: - Tidy up spurious instructions, name temps properly.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
[V2] Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp