i965: add new VS_OPCODE_UNPACK_FLAGS_SIMD4X2
authorChris Forbes <chrisf@ijw.co.nz>
Wed, 7 Aug 2013 18:31:33 +0000 (06:31 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 15 Aug 2013 19:24:38 +0000 (07:24 +1200)
commita9be50f77675a70a44d231fc1f7fa85f875c5153
tree195a26134a44f6149742331659a7c180fc02638a
parent9e2c1e28a14bb7c5ec49d6e7638b07a9e03ddca9
i965: add new VS_OPCODE_UNPACK_FLAGS_SIMD4X2

Splits the bottom 8 bits of f0.0 for further wrangling
in a SIMD4x2 program. The 4 bits corresponding to the channels in each
program flow are copied to the LSBs of dst.x visible to each flow.

This is useful for working with clipping flags in the VS.

V3: - Fixup immediate types
    - Teach scheduler about the hidden dep on flags

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
V2: Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i965/brw_defines.h
src/mesa/drivers/dri/i965/brw_shader.cpp
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp