From 9e65ebb67a2517559494ad463bd57370e1b23702 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 9 Dec 2021 16:26:25 -0500 Subject: [PATCH] panfrost: Add IDVS fields to shader_info This lets the compiler decide if IDVS should be used. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/util/pan_ir.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/panfrost/util/pan_ir.h b/src/panfrost/util/pan_ir.h index ec87a8c..0febd74 100644 --- a/src/panfrost/util/pan_ir.h +++ b/src/panfrost/util/pan_ir.h @@ -227,6 +227,27 @@ struct pan_shader_info { struct { bool writes_point_size; + + /* Set if Index-Driven Vertex Shading is in use */ + bool idvs; + + /* If IDVS is used, whether a varying shader is used */ + bool secondary_enable; + + /* If a varying shader is used, the varying shader's + * offset in the program binary + */ + unsigned secondary_offset; + + /* If IDVS is in use, number of work registers used by + * the varying shader + */ + unsigned secondary_work_reg_count; + + /* If IDVS is in use, bit mask of preloaded registers + * used by the varying shader + */ + uint64_t secondary_preload; } vs; }; -- 2.7.4