mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02: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;
|
shader->info.fs.needs_all_helper_invocations = true;
|
||||||
if (shader->info.stage == MESA_SHADER_COMPUTE)
|
if (shader->info.stage == MESA_SHADER_COMPUTE)
|
||||||
shader->info.cs.uses_wide_subgroup_intrinsics = true;
|
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;
|
break;
|
||||||
|
|
||||||
case nir_intrinsic_end_primitive:
|
case nir_intrinsic_end_primitive:
|
||||||
|
|
|
||||||
|
|
@ -532,6 +532,8 @@ typedef struct shader_info {
|
||||||
|
|
||||||
/* Applies to MESH. */
|
/* Applies to MESH. */
|
||||||
struct {
|
struct {
|
||||||
|
bool uses_wide_subgroup_intrinsics;
|
||||||
|
|
||||||
/* Bit mask of MS outputs that are used
|
/* Bit mask of MS outputs that are used
|
||||||
* with an index that is NOT the local invocation index.
|
* with an index that is NOT the local invocation index.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue