mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
anv/brw: use separate_shader to deduced MUE compaction
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34109>
This commit is contained in:
parent
6230f3029f
commit
ef17fbf8e5
3 changed files with 7 additions and 11 deletions
|
|
@ -1662,8 +1662,12 @@ brw_compile_mesh(const struct brw_compiler *compiler,
|
|||
|
||||
brw_nir_lower_tue_inputs(nir, params->tue_map);
|
||||
|
||||
/* Incorrectly set separate to false until we fix the anv/brw in the next
|
||||
* commit.
|
||||
*/
|
||||
brw_compute_mue_map(compiler, nir, &prog_data->map,
|
||||
prog_data->index_format, key->compact_mue);
|
||||
prog_data->index_format,
|
||||
false /* TODO: use nir->info.separate_shader */);
|
||||
brw_nir_lower_mue_outputs(nir, &prog_data->map);
|
||||
|
||||
prog_data->autostrip_enable = brw_mesh_autostrip_enable(compiler, nir, &prog_data->map);
|
||||
|
|
|
|||
|
|
@ -338,9 +338,6 @@ struct brw_task_prog_key
|
|||
struct brw_mesh_prog_key
|
||||
{
|
||||
struct brw_base_prog_key base;
|
||||
|
||||
bool compact_mue:1;
|
||||
unsigned padding:31;
|
||||
};
|
||||
|
||||
/** The program key for Fragment/Pixel Shaders. */
|
||||
|
|
|
|||
|
|
@ -431,14 +431,12 @@ populate_task_prog_key(struct anv_pipeline_stage *stage,
|
|||
|
||||
static void
|
||||
populate_mesh_prog_key(struct anv_pipeline_stage *stage,
|
||||
const struct anv_device *device,
|
||||
bool compact_mue)
|
||||
const struct anv_device *device)
|
||||
{
|
||||
memset(&stage->key, 0, sizeof(stage->key));
|
||||
|
||||
populate_base_prog_key(stage, device);
|
||||
|
||||
stage->key.mesh.compact_mue = compact_mue;
|
||||
stage->key.base.uses_inline_push_addr = true;
|
||||
}
|
||||
|
||||
|
|
@ -1805,10 +1803,7 @@ anv_graphics_pipeline_init_keys(struct anv_graphics_base_pipeline *pipeline,
|
|||
break;
|
||||
|
||||
case MESA_SHADER_MESH: {
|
||||
const bool compact_mue =
|
||||
!(pipeline->base.type == ANV_PIPELINE_GRAPHICS_LIB &&
|
||||
!anv_pipeline_base_has_stage(pipeline, MESA_SHADER_FRAGMENT));
|
||||
populate_mesh_prog_key(&stages[s], device, compact_mue);
|
||||
populate_mesh_prog_key(&stages[s], device);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue