i965: Pass number of components explicitly to brw_untyped_atomic and _surface_read.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 26 Feb 2015 10:56:19 +0000 (12:56 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 20 Mar 2015 15:01:35 +0000 (17:01 +0200)
commit959d16e38e007b29349d7371fb390a5449c88341
treebccf4a33a0e6f86fab376ec304e86184670ec787
parenta815cd8449c207956176020e752cd0051ed842ec
i965: Pass number of components explicitly to brw_untyped_atomic and _surface_read.

And calculate the message response size based on the number of
components rather than the other way around.  This simplifies their
interface somewhat and allows the caller to request a writeback
message with more than one vector component in SIMD4x2 mode.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs_generator.cpp
src/mesa/drivers/dri/i965/brw_vec4_generator.cpp