i965/cs: Split out helper for building local id payload
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Tue, 6 Oct 2015 05:07:58 +0000 (22:07 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Thu, 8 Oct 2015 19:15:02 +0000 (12:15 -0700)
commit469d0e449b78ad68e199dbe60e900487255a5d5d
tree731729f43711586dab66fced6c14f0ee6e3c5864
parent4f33700f5ab6e69072318622651ea81639845ae9
i965/cs: Split out helper for building local id payload

The initial motivation for this patch was to avoid calling
brw_cs_prog_local_id_payload_dwords() in gen7_cs_state.c from the
compiler. This commit ends up refactoring things a bit more so as to
split out the logic to build the local id payload to brw_fs.cpp. This
moves the payload building closer to the compiler code that uses the
payload layout and makes it available to other users of the compiler.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_cs.h
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/gen7_cs_state.c