mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radeonsi: copy some nir gs info
v2: copy input primitive Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
b73ce64fb8
commit
a8bdf0e0c4
1 changed files with 7 additions and 0 deletions
|
|
@ -139,6 +139,13 @@ void si_nir_scan_shader(const struct nir_shader *nir,
|
|||
info->num_inputs = nir->num_inputs;
|
||||
info->num_outputs = nir->num_outputs;
|
||||
|
||||
if (nir->info.stage == MESA_SHADER_GEOMETRY) {
|
||||
info->properties[TGSI_PROPERTY_GS_INPUT_PRIM] = nir->info.gs.input_primitive;
|
||||
info->properties[TGSI_PROPERTY_GS_OUTPUT_PRIM] = nir->info.gs.output_primitive;
|
||||
info->properties[TGSI_PROPERTY_GS_MAX_OUTPUT_VERTICES] = nir->info.gs.vertices_out;
|
||||
info->properties[TGSI_PROPERTY_GS_INVOCATIONS] = nir->info.gs.invocations;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
nir_foreach_variable(variable, &nir->inputs) {
|
||||
unsigned semantic_name, semantic_index;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue