summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_eu.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2015-02-26 12:56:19 +0200
committerFrancisco Jerez <currojerez@riseup.net>2015-03-20 17:01:35 +0200
commit959d16e38e007b29349d7371fb390a5449c88341 (patch)
treebccf4a33a0e6f86fab376ec304e86184670ec787 /src/mesa/drivers/dri/i965/brw_eu.h
parenta815cd8449c207956176020e752cd0051ed842ec (diff)
downloadexternal_mesa3d-959d16e38e007b29349d7371fb390a5449c88341.zip
external_mesa3d-959d16e38e007b29349d7371fb390a5449c88341.tar.gz
external_mesa3d-959d16e38e007b29349d7371fb390a5449c88341.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_eu.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_eu.h b/src/mesa/drivers/dri/i965/brw_eu.h
index a87787e..f8fd155 100644
--- a/src/mesa/drivers/dri/i965/brw_eu.h
+++ b/src/mesa/drivers/dri/i965/brw_eu.h
@@ -405,7 +405,7 @@ brw_untyped_atomic(struct brw_compile *p,
unsigned atomic_op,
unsigned bind_table_index,
unsigned msg_length,
- unsigned response_length);
+ bool response_expected);
void
brw_untyped_surface_read(struct brw_compile *p,
@@ -413,7 +413,7 @@ brw_untyped_surface_read(struct brw_compile *p,
struct brw_reg mrf,
unsigned bind_table_index,
unsigned msg_length,
- unsigned response_length);
+ unsigned num_channels);
void
brw_pixel_interpolator_query(struct brw_compile *p,