mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
mesa/st/nir: fix missing nir_compact_varyings
LinkedTransformFeedback is normally populated, which had nerf'd varying
packing since the check was introduced.
Fixes: dbd52585fa st/nir: Disable varying packing when doing transform feedback.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
9e3fc0c1e0
commit
cfe8220904
1 changed files with 2 additions and 1 deletions
|
|
@ -758,7 +758,8 @@ st_link_nir(struct gl_context *ctx,
|
|||
* the pipe_stream_output->output_register field is based on the
|
||||
* pre-compacted driver_locations.
|
||||
*/
|
||||
if (!prev_shader->sh.LinkedTransformFeedback)
|
||||
if (!(prev_shader->sh.LinkedTransformFeedback &&
|
||||
prev_shader->sh.LinkedTransformFeedback->NumVarying > 0))
|
||||
nir_compact_varyings(shader_program->_LinkedShaders[prev]->Program->nir,
|
||||
nir, ctx->API != API_OPENGL_COMPAT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue