mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +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:dbd52585fast/nir: Disable varying packing when doing transform feedback. Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> (cherry picked from commitcfe8220904)
This commit is contained in:
parent
734f78a783
commit
7594f63f21
1 changed files with 2 additions and 1 deletions
|
|
@ -749,7 +749,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