intel/compiler: Use a struct for brw_compile_cs parameters
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9779>
This commit is contained in:

committed by
Marge Bot

parent
05933fb0f7
commit
e93c8ab023
@@ -1588,20 +1588,36 @@ brw_compile_fs(const struct brw_compiler *compiler,
|
||||
void *mem_ctx,
|
||||
struct brw_compile_fs_params *params);
|
||||
|
||||
/**
|
||||
* Parameters for compiling a compute shader.
|
||||
*
|
||||
* Some of these will be modified during the shader compilation.
|
||||
*/
|
||||
struct brw_compile_cs_params {
|
||||
nir_shader *nir;
|
||||
|
||||
const struct brw_cs_prog_key *key;
|
||||
struct brw_cs_prog_data *prog_data;
|
||||
|
||||
bool shader_time;
|
||||
int shader_time_index;
|
||||
|
||||
struct brw_compile_stats *stats;
|
||||
|
||||
void *log_data;
|
||||
|
||||
char *error_str;
|
||||
};
|
||||
|
||||
/**
|
||||
* Compile a compute shader.
|
||||
*
|
||||
* Returns the final assembly and the program's size.
|
||||
* Returns the final assembly and updates the parameters structure.
|
||||
*/
|
||||
const unsigned *
|
||||
brw_compile_cs(const struct brw_compiler *compiler, void *log_data,
|
||||
brw_compile_cs(const struct brw_compiler *compiler,
|
||||
void *mem_ctx,
|
||||
const struct brw_cs_prog_key *key,
|
||||
struct brw_cs_prog_data *prog_data,
|
||||
const nir_shader *nir,
|
||||
int shader_time_index,
|
||||
struct brw_compile_stats *stats,
|
||||
char **error_str);
|
||||
struct brw_compile_cs_params *params);
|
||||
|
||||
/**
|
||||
* Compile a Ray Tracing shader.
|
||||
|
Reference in New Issue
Block a user