mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
nir: allow nir_lower_point_size_mov to run in geometry shader
geometry shaders may need to emit PSIZ as well Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5851>
This commit is contained in:
parent
36abb0c691
commit
3fe87a5836
1 changed files with 2 additions and 1 deletions
|
|
@ -68,7 +68,8 @@ void
|
|||
nir_lower_point_size_mov(nir_shader *shader,
|
||||
const gl_state_index16 *pointsize_state_tokens)
|
||||
{
|
||||
assert(shader->info.stage == MESA_SHADER_VERTEX);
|
||||
assert(shader->info.stage == MESA_SHADER_VERTEX ||
|
||||
shader->info.stage == MESA_SHADER_GEOMETRY);
|
||||
|
||||
nir_variable *out = NULL;
|
||||
nir_foreach_variable(var, &shader->outputs) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue