r300: simplify ntr_output_decl
We have no tesselation. Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Emma Anholt <emma@anholt.net> Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23437>
This commit is contained in:

committed by
Marge Bot

parent
b3cf43bda3
commit
12e9c20bfb
@@ -602,22 +602,13 @@ ntr_output_decl(struct ntr_compile *c, nir_intrinsic_instr *instr, uint32_t *fra
|
||||
*/
|
||||
bool invariant = semantics.invariant;
|
||||
|
||||
unsigned num_slots = semantics.num_slots;
|
||||
if (semantics.location == VARYING_SLOT_TESS_LEVEL_INNER ||
|
||||
semantics.location == VARYING_SLOT_TESS_LEVEL_OUTER) {
|
||||
/* Compact vars get a num_slots in NIR as number of components, but we
|
||||
* want the number of vec4 slots here.
|
||||
*/
|
||||
num_slots = 1;
|
||||
}
|
||||
|
||||
out = ureg_DECL_output_layout(c->ureg,
|
||||
semantic_name, semantic_index,
|
||||
gs_streams,
|
||||
base,
|
||||
usage_mask,
|
||||
array_id,
|
||||
num_slots,
|
||||
semantics.num_slots,
|
||||
invariant);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user