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:
@@ -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, ¶ms);
|
||||
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;
|
||||
|
Reference in New Issue
Block a user