intel/compiler: Add max_polygons FS compilation parameter.

Add a brw_compile_fs_params parameter that specifies to the compiler
the maximum number of polygons that may be processed in parallel per
PS SIMD thread.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26585>
This commit is contained in:
Francisco Jerez 2022-06-22 16:16:08 -07:00 committed by Marge Bot
parent 6fccacda1e
commit e7b1993376
5 changed files with 5 additions and 0 deletions

View file

@ -1851,6 +1851,7 @@ crocus_compile_fs(struct crocus_context *ice,
.prog_data = fs_prog_data,
.allow_spilling = true,
.max_polygons = 1,
.vue_map = vue_map,
};
const unsigned *program =

View file

@ -1966,6 +1966,7 @@ iris_compile_fs(struct iris_screen *screen,
.prog_data = fs_prog_data,
.allow_spilling = true,
.max_polygons = 1,
.vue_map = vue_map,
};

View file

@ -302,6 +302,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
.prog_data = wm_prog_data,
.use_rep_send = use_repclear,
.max_polygons = 1,
};
return brw_compile_fs(compiler, &params);

View file

@ -2014,6 +2014,7 @@ struct brw_compile_fs_params {
bool allow_spilling;
bool use_rep_send;
uint8_t max_polygons;
};
/**

View file

@ -1520,6 +1520,7 @@ anv_pipeline_compile_fs(const struct brw_compiler *compiler,
.prog_data = &fs_stage->prog_data.wm,
.allow_spilling = true,
.max_polygons = 1,
};
if (prev_stage && prev_stage->stage == MESA_SHADER_MESH) {