panfrost: Add IDVS fields to shader_info

This lets the compiler decide if IDVS should be used.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14154>
This commit is contained in:
Alyssa Rosenzweig 2021-12-09 16:26:25 -05:00 committed by Marge Bot
parent dc4fe86a01
commit 9e65ebb67a
1 changed files with 21 additions and 0 deletions

View File

@ -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;
};