intel/compiler: Use a struct for brw_compile_tes parameters

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14139>
This commit is contained in:
Caio Oliveira
2021-03-23 15:03:50 -07:00
committed by Marge Bot
parent 7372a48a4a
commit acf2d3c78b
5 changed files with 69 additions and 43 deletions

View File

@@ -1711,12 +1711,17 @@ iris_compile_tes(struct iris_screen *screen,
struct brw_tes_prog_key brw_key = iris_to_brw_tes_key(devinfo, key);
char *error_str = NULL;
const unsigned *program =
brw_compile_tes(compiler, dbg, mem_ctx, &brw_key, &input_vue_map,
tes_prog_data, nir, NULL, &error_str);
struct brw_compile_tes_params params = {
.nir = nir,
.key = &brw_key,
.prog_data = tes_prog_data,
.input_vue_map = &input_vue_map,
.log_data = dbg,
};
const unsigned *program = brw_compile_tes(compiler, mem_ctx, &params);
if (program == NULL) {
dbg_printf("Failed to compile evaluation shader: %s\n", error_str);
dbg_printf("Failed to compile evaluation shader: %s\n", params.error_str);
ralloc_free(mem_ctx);
shader->compilation_failed = true;