{
struct crocus_screen *screen = (struct crocus_screen *)ice->ctx.screen;
const struct brw_compiler *compiler = screen->compiler;
- const struct nir_shader_compiler_options *options =
- compiler->nir_options[MESA_SHADER_TESS_CTRL];
void *mem_ctx = ralloc_context(NULL);
struct brw_tcs_prog_data *tcs_prog_data =
rzalloc(mem_ctx, struct brw_tcs_prog_data);
if (can_push_ubo(devinfo))
brw_nir_analyze_ubo_ranges(compiler, nir, NULL, prog_data->ubo_ranges);
} else {
- nir = brw_nir_create_passthrough_tcs(mem_ctx, compiler, options, key);
+ nir = brw_nir_create_passthrough_tcs(mem_ctx, compiler, key);
/* Reserve space for passing the default tess levels as constants. */
num_cbufs = 1;
struct iris_compiled_shader *shader)
{
const struct brw_compiler *compiler = screen->compiler;
- const struct nir_shader_compiler_options *options =
- compiler->nir_options[MESA_SHADER_TESS_CTRL];
void *mem_ctx = ralloc_context(NULL);
struct brw_tcs_prog_data *tcs_prog_data =
rzalloc(mem_ctx, struct brw_tcs_prog_data);
brw_nir_analyze_ubo_ranges(compiler, nir, NULL, prog_data->ubo_ranges);
} else {
nir =
- brw_nir_create_passthrough_tcs(mem_ctx, compiler, options, &brw_key);
+ brw_nir_create_passthrough_tcs(mem_ctx, compiler, &brw_key);
/* Reserve space for passing the default tess levels as constants. */
num_cbufs = 1;
nir_shader *
brw_nir_create_passthrough_tcs(void *mem_ctx, const struct brw_compiler *compiler,
- const nir_shader_compiler_options *options,
const struct brw_tcs_prog_key *key)
{
+ const nir_shader_compiler_options *options =
+ compiler->nir_options[MESA_SHADER_TESS_CTRL];
nir_builder b = nir_builder_init_simple_shader(MESA_SHADER_TESS_CTRL,
options, "passthrough TCS");
ralloc_steal(mem_ctx, b.shader);
nir_shader *brw_nir_create_passthrough_tcs(void *mem_ctx,
const struct brw_compiler *compiler,
- const nir_shader_compiler_options *options,
const struct brw_tcs_prog_key *key);
#define BRW_NIR_FRAG_OUTPUT_INDEX_SHIFT 0