st_index = brw_get_shader_time_index(brw, prog, &cp->program.Base, ST_CS);
char *error_str;
- program = brw_cs_emit(brw->intelScreen->compiler, brw, mem_ctx,
- key, &prog_data, cp->program.Base.nir,
- st_index, &program_size, &error_str);
+ program = brw_compile_cs(brw->intelScreen->compiler, brw, mem_ctx,
+ key, &prog_data, cp->program.Base.nir,
+ st_index, &program_size, &error_str);
if (program == NULL) {
prog->LinkStatus = false;
ralloc_strcat(&prog->InfoLog, error_str);
struct nir_shader;
const unsigned *
-brw_cs_emit(const struct brw_compiler *compiler, void *log_data,
- void *mem_ctx,
- const struct brw_cs_prog_key *key,
- struct brw_cs_prog_data *prog_data,
- const struct nir_shader *shader,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str);
+brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
+ void *mem_ctx,
+ const struct brw_cs_prog_key *key,
+ struct brw_cs_prog_data *prog_data,
+ const struct nir_shader *shader,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str);
void
brw_cs_fill_local_id_payload(const struct brw_cs_prog_data *cs_prog_data,
}
const unsigned *
-brw_wm_fs_emit(const struct brw_compiler *compiler, void *log_data,
+brw_compile_fs(const struct brw_compiler *compiler, void *log_data,
void *mem_ctx,
const struct brw_wm_prog_key *key,
struct brw_wm_prog_data *prog_data,
}
const unsigned *
-brw_cs_emit(const struct brw_compiler *compiler, void *log_data,
- void *mem_ctx,
- const struct brw_cs_prog_key *key,
- struct brw_cs_prog_data *prog_data,
- const nir_shader *shader,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str)
+brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
+ void *mem_ctx,
+ const struct brw_cs_prog_key *key,
+ struct brw_cs_prog_data *prog_data,
+ const nir_shader *shader,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str)
{
prog_data->local_size[0] = shader->info.cs.local_size[0];
prog_data->local_size[1] = shader->info.cs.local_size[1];
unsigned program_size;
char *error_str;
const unsigned *program =
- brw_gs_emit(brw->intelScreen->compiler, brw, &c,
- shader->Program->nir, prog,
- mem_ctx, st_index, &program_size, &error_str);
+ brw_compile_gs(brw->intelScreen->compiler, brw, &c,
+ shader->Program->nir, prog,
+ mem_ctx, st_index, &program_size, &error_str);
if (program == NULL) {
ralloc_free(mem_ctx);
return false;
* Returns the final assembly and the program's size.
*/
const unsigned *
-brw_vs_emit(const struct brw_compiler *compiler, void *log_data,
- void *mem_ctx,
- const struct brw_vs_prog_key *key,
- struct brw_vs_prog_data *prog_data,
- const nir_shader *shader,
- gl_clip_plane *clip_planes,
- bool use_legacy_snorm_formula,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str)
+brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
+ void *mem_ctx,
+ const struct brw_vs_prog_key *key,
+ struct brw_vs_prog_data *prog_data,
+ const nir_shader *shader,
+ gl_clip_plane *clip_planes,
+ bool use_legacy_snorm_formula,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str)
{
const unsigned *assembly = NULL;
}
extern "C" const unsigned *
-brw_gs_emit(const struct brw_compiler *compiler, void *log_data,
- struct brw_gs_compile *c,
- const nir_shader *shader,
- struct gl_shader_program *shader_prog,
- void *mem_ctx,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str)
+brw_compile_gs(const struct brw_compiler *compiler, void *log_data,
+ struct brw_gs_compile *c,
+ const nir_shader *shader,
+ struct gl_shader_program *shader_prog,
+ void *mem_ctx,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str)
{
if (compiler->devinfo->gen >= 7) {
/* Compile the geometry shader in DUAL_OBJECT dispatch mode, if we can do
extern "C" {
#endif
-const unsigned *brw_gs_emit(const struct brw_compiler *compiler, void *log_data,
- struct brw_gs_compile *c,
- const nir_shader *shader,
- struct gl_shader_program *shader_prog,
- void *mem_ctx,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str);
+const unsigned *brw_compile_gs(const struct brw_compiler *compiler,
+ void *log_data,
+ struct brw_gs_compile *c,
+ const nir_shader *shader,
+ struct gl_shader_program *shader_prog,
+ void *mem_ctx,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str);
#ifdef __cplusplus
} /* extern "C" */
/* Emit GEN4 code.
*/
char *error_str;
- program = brw_vs_emit(brw->intelScreen->compiler, brw, mem_ctx, key,
- &prog_data, vp->program.Base.nir,
- brw_select_clip_planes(&brw->ctx),
- !_mesa_is_gles3(&brw->ctx),
- st_index, &program_size, &error_str);
+ program = brw_compile_vs(brw->intelScreen->compiler, brw, mem_ctx, key,
+ &prog_data, vp->program.Base.nir,
+ brw_select_clip_planes(&brw->ctx),
+ !_mesa_is_gles3(&brw->ctx),
+ st_index, &program_size, &error_str);
if (program == NULL) {
if (prog) {
prog->LinkStatus = false;
struct nir_shader;
-const unsigned *brw_vs_emit(const struct brw_compiler *compiler, void *log_data,
- void *mem_ctx,
- const struct brw_vs_prog_key *key,
- struct brw_vs_prog_data *prog_data,
- const struct nir_shader *shader,
- gl_clip_plane *clip_planes,
- bool use_legacy_snorm_formula,
- int shader_time_index,
- unsigned *final_assembly_size,
- char **error_str);
+const unsigned *brw_compile_vs(const struct brw_compiler *compiler, void *log_data,
+ void *mem_ctx,
+ const struct brw_vs_prog_key *key,
+ struct brw_vs_prog_data *prog_data,
+ const struct nir_shader *shader,
+ gl_clip_plane *clip_planes,
+ bool use_legacy_snorm_formula,
+ int shader_time_index,
+ unsigned *final_assembly_size,
+ char **error_str);
void brw_vs_debug_recompile(struct brw_context *brw,
struct gl_shader_program *prog,
const struct brw_vs_prog_key *key);
}
char *error_str = NULL;
- program = brw_wm_fs_emit(brw->intelScreen->compiler, brw, mem_ctx,
+ program = brw_compile_fs(brw->intelScreen->compiler, brw, mem_ctx,
key, &prog_data, fp->program.Base.nir,
&fp->program.Base, st_index8, st_index16,
brw->use_rep_send, &program_size, &error_str);
*
* Returns the final assembly and the program's size.
*/
-const unsigned *brw_wm_fs_emit(const struct brw_compiler *compiler,
+const unsigned *brw_compile_fs(const struct brw_compiler *compiler,
void *log_data,
void *mem_ctx,
const struct brw_wm_prog_key *key,