mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
nir: add uses_wide_subgroup_intrinsics to task/mesh shader_info
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Caio Oliveira <caio.oliveira@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18504>
This commit is contained in:
parent
704ef1fd3b
commit
fa437f87ca
2 changed files with 4 additions and 0 deletions
|
|
@ -835,6 +835,8 @@ gather_intrinsic_info(nir_intrinsic_instr *instr, nir_shader *shader,
|
|||
shader->info.fs.needs_all_helper_invocations = true;
|
||||
if (shader->info.stage == MESA_SHADER_COMPUTE)
|
||||
shader->info.cs.uses_wide_subgroup_intrinsics = true;
|
||||
if (gl_shader_stage_is_mesh(shader->info.stage))
|
||||
shader->info.mesh.uses_wide_subgroup_intrinsics = true;
|
||||
break;
|
||||
|
||||
case nir_intrinsic_end_primitive:
|
||||
|
|
|
|||
|
|
@ -532,6 +532,8 @@ typedef struct shader_info {
|
|||
|
||||
/* Applies to MESH. */
|
||||
struct {
|
||||
bool uses_wide_subgroup_intrinsics;
|
||||
|
||||
/* Bit mask of MS outputs that are used
|
||||
* with an index that is NOT the local invocation index.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue