From 12e9c20bfb5f2b014bdc377602712806feb3d0d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Ondra=C4=8Dka?= Date: Thu, 1 Jun 2023 13:29:16 +0200 Subject: [PATCH] r300: simplify ntr_output_decl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We have no tesselation. Signed-off-by: Pavel Ondračka Reviewed-by: Emma Anholt Reviewed-by: Filip Gawin Part-of: --- src/gallium/drivers/r300/compiler/nir_to_rc.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/gallium/drivers/r300/compiler/nir_to_rc.c b/src/gallium/drivers/r300/compiler/nir_to_rc.c index 64c5db8348a..0997efd2d67 100644 --- a/src/gallium/drivers/r300/compiler/nir_to_rc.c +++ b/src/gallium/drivers/r300/compiler/nir_to_rc.c @@ -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); }