Skip to content
Snippets Groups Projects
Commit 6e98a923 authored by Caio Oliveira's avatar Caio Oliveira Committed by Dylan Baker
Browse files

spirv: Don't leak GS initialization to other stages


The stage specific fields of shader_info are in an union.  We've
likely been lucky that this value was either overwritten or ignored by
other stages.  The recent change in shader_info layout in commit
84a1a257 ("compiler: pack shader_info from 160 bytes to 96 bytes")
made this issue visible.

Fixes: cf225706 ("nir/spirv: Set a default number of invocations for geometry shaders")
Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
(cherry picked from commit 087ecd9c)
parent 2b89e68a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment