summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopi Pohjolainen <topi.pohjolainen@intel.com>2016-06-01 12:27:56 +0300
committerTopi Pohjolainen <topi.pohjolainen@intel.com>2016-07-04 09:03:41 +0300
commit9b2fa17e97f2a6161c0aea6872b6e3823de626d0 (patch)
tree836822d683eaeca1807b97369d78278f66107b60
parent73f78ab44bff8e02b699940f830d50789d4edf34 (diff)
i965/blorp: Store input read mask
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.c1
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.c b/src/mesa/drivers/dri/i965/brw_blorp.c
index ce37838d8cb4..4d6c0ba6bf23 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.c
+++ b/src/mesa/drivers/dri/i965/brw_blorp.c
@@ -233,6 +233,7 @@ brw_blorp_compile_nir_shader(struct brw_context *brw, struct nir_shader *nir,
prog_data->persample_msaa_dispatch = wm_prog_data.persample_dispatch;
prog_data->flat_inputs = wm_prog_data.flat_inputs;
prog_data->num_varying_inputs = wm_prog_data.num_varying_inputs;
+ prog_data->inputs_read = nir->info.inputs_read;
prog_data->nr_params = wm_prog_data.base.nr_params;
for (unsigned i = 0; i < ARRAY_SIZE(param); i++)
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.h b/src/mesa/drivers/dri/i965/brw_blorp.h
index a4036c1d0a9b..c84217006a9c 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.h
+++ b/src/mesa/drivers/dri/i965/brw_blorp.h
@@ -229,6 +229,7 @@ struct brw_blorp_prog_data
*/
uint32_t flat_inputs;
unsigned num_varying_inputs;
+ GLbitfield64 inputs_read;
/* The compiler will re-arrange push constants and store the upload order
* here. Given an index 'i' in the final upload buffer, param[i] gives the