const void *kernel_data, uint32_t kernel_size,
const void *constant_data, uint32_t constant_data_size,
const struct brw_stage_prog_data *prog_data_in,
- uint32_t prog_data_size, const void *prog_data_param_in,
+ uint32_t prog_data_size,
const struct brw_compile_stats *stats, uint32_t num_stats,
const nir_xfb_info *xfb_info_in,
const struct anv_pipeline_bind_map *bind_map)
shader->constant_data_size = constant_data_size;
memcpy(prog_data, prog_data_in, prog_data_size);
- memcpy(prog_data_param, prog_data_param_in,
+ memset(prog_data_param, 0,
prog_data->nr_params * sizeof(*prog_data_param));
prog_data->param = prog_data_param;
shader->prog_data = prog_data;
blob_write_uint32(blob, shader->prog_data_size);
blob_write_bytes(blob, shader->prog_data, shader->prog_data_size);
- blob_write_bytes(blob, shader->prog_data->param,
- shader->prog_data->nr_params *
- sizeof(*shader->prog_data->param));
blob_write_uint32(blob, shader->num_stats);
blob_write_bytes(blob, shader->stats,
blob_read_bytes(blob, prog_data_size);
if (blob->overrun)
return NULL;
- const void *prog_data_param =
- blob_read_bytes(blob, prog_data->nr_params * sizeof(*prog_data->param));
uint32_t num_stats = blob_read_uint32(blob);
const struct brw_compile_stats *stats =
key_data, key_size,
kernel_data, kernel_size,
constant_data, constant_data_size,
- prog_data, prog_data_size, prog_data_param,
+ prog_data, prog_data_size,
stats, num_stats, xfb_info, &bind_map);
}
uint32_t constant_data_size,
const struct brw_stage_prog_data *prog_data,
uint32_t prog_data_size,
- const void *prog_data_param,
const struct brw_compile_stats *stats,
uint32_t num_stats,
const nir_xfb_info *xfb_info,
anv_shader_bin_create(cache->device, key_data, key_size,
kernel_data, kernel_size,
constant_data, constant_data_size,
- prog_data, prog_data_size, prog_data_param,
+ prog_data, prog_data_size,
stats, num_stats, xfb_info, bind_map);
if (!bin)
return NULL;
kernel_data, kernel_size,
constant_data, constant_data_size,
prog_data, prog_data_size,
- prog_data->param,
stats, num_stats,
xfb_info, bind_map);
kernel_data, kernel_size,
constant_data, constant_data_size,
prog_data, prog_data_size,
- prog_data->param,
stats, num_stats,
xfb_info, bind_map);
}
kernel_data, kernel_size,
constant_data, constant_data_size,
prog_data, prog_data_size,
- prog_data->param,
stats, num_stats,
xfb_info, bind_map);
}