i965/fs: Mark UBO uniform pull constant loads as force_writemask_all.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 23 May 2016 21:07:23 +0000 (14:07 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 23 May 2016 21:07:23 +0000 (14:07 -0700)
commit015035027beb38fb9a3b06f8cd94aadc96a8f728
treec4b97f8f6c9cb2537a37cbae418eef995f7c16c5
parent7eb496688762ea614408c4c75e4b5c7242d2677c
i965/fs: Mark UBO uniform pull constant loads as force_writemask_all.

This lets the rest of the backend know that the uniform pull constant
load opcodes don't respect channel enables -- Without this the
register allocator has no way to know that the return payload of a
pull constant load is not per-channel and spills of the destination
will be broken under non-uniform control flow.

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