i965/fs: Pass current execution size to brw_IF() and brw_DO().
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 19 May 2016 02:36:03 +0000 (19:36 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:22:10 +0000 (23:22 -0700)
commit8ef5637729cc11cbdcb84990f5896a70a8fae3a9
tree1d8a088fcb9f3eb2a1f91458b382c558b76ad1f3
parentfdae8b9f91089aea3d4b88ddb62a39ac687bb9be
i965/fs: Pass current execution size to brw_IF() and brw_DO().

This gets IF and DO instructions working in SIMD32 programs.  brw_IF()
and brw_DO() should probably behave in the same way as other generator
functions that emit control flow instructions and just figure out the
right execution size by themselves from the current execution controls
specified through the brw_codegen argument.  Changing that will
require updating lots of Gen4-5 clipper code though, so for the moment
just pass the current value redundantly from the FS generator.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp