mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
radv: scan the geometry shader output usage mask
For reducing the number of parameters that are exported by the GS copy shader. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
ea43d935ab
commit
560bd9eb67
2 changed files with 9 additions and 0 deletions
|
|
@ -157,6 +157,9 @@ struct radv_shader_info {
|
|||
bool needs_draw_id;
|
||||
bool needs_instance_id;
|
||||
} vs;
|
||||
struct {
|
||||
uint8_t output_usage_mask[VARYING_SLOT_VAR31 + 1];
|
||||
} gs;
|
||||
struct {
|
||||
uint8_t output_usage_mask[VARYING_SLOT_VAR31 + 1];
|
||||
} tes;
|
||||
|
|
|
|||
|
|
@ -134,6 +134,12 @@ gather_intrinsic_store_var_info(const nir_shader *nir,
|
|||
instr->const_index[0] << comp;
|
||||
}
|
||||
break;
|
||||
case MESA_SHADER_GEOMETRY:
|
||||
for (unsigned i = 0; i < attrib_count; i++) {
|
||||
info->gs.output_usage_mask[idx + i + const_offset] |=
|
||||
instr->const_index[0] << comp;
|
||||
}
|
||||
break;
|
||||
case MESA_SHADER_TESS_EVAL:
|
||||
for (unsigned i = 0; i < attrib_count; i++) {
|
||||
info->tes.output_usage_mask[idx + i + const_offset] |=
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue