mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
st/mesh: handle mesh shader point size
This sets the per-vertex point size state correctly in the presence of mesh shaders.
(fixes line is just a educated pick)
Fixes: 51d6e4404a ("mesa: allow NULL for vertex shader when mesh pipeline")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40475>
This commit is contained in:
parent
a2b0dd80f3
commit
5bfaf7536a
1 changed files with 8 additions and 0 deletions
|
|
@ -104,6 +104,14 @@ st_point_size_per_vertex(struct gl_context *ctx)
|
|||
VARYING_BIT_PSIZ);
|
||||
}
|
||||
}
|
||||
const struct gl_program *meshProg = ctx->MeshProgram._Current;
|
||||
if (meshProg) {
|
||||
if (meshProg->info.outputs_written &
|
||||
VARYING_BIT_PSIZ) {
|
||||
/* generated program which emits point size */
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue