i965/blorp: Store input read mask
authorTopi Pohjolainen <topi.pohjolainen@intel.com>
Wed, 1 Jun 2016 09:27:56 +0000 (12:27 +0300)
committerTopi Pohjolainen <topi.pohjolainen@intel.com>
Mon, 4 Jul 2016 06:03:41 +0000 (09:03 +0300)
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_blorp.c
src/mesa/drivers/dri/i965/brw_blorp.h

index ce37838d8cb47152f3c2c321e8da3208d7ecd7e6..4d6c0ba6bf2377af55535c73cb11288ec6cea932 100644 (file)
@@ -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++)
index a4036c1d0a9bc31be6d71e0a0c883ed5351fd69d..c84217006a9c51c03019de1062cc44dce7bf446e 100644 (file)
@@ -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