Setting this cap to 0 (default is 1) should disable packing
optimization for stream output (e.g. GL transform feedback captured
variables).
Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2433>
/* Enables INTEL_blackhole_render */
return 0;
+ case PIPE_CAP_PACKED_STREAM_OUTPUT:
+ return 1;
+
default:
unreachable("bad PIPE_CAP_*");
}
/* Turn draw, dispatch, blit into NOOP */
PIPE_CAP_FRONTEND_NOOP,
PIPE_CAP_NIR_IMAGES_AS_DEREF,
+ PIPE_CAP_PACKED_STREAM_OUTPUT,
};
/**
consts->DisableVaryingPacking = GL_TRUE;
}
+ if (!screen->get_param(screen, PIPE_CAP_PACKED_STREAM_OUTPUT))
+ consts->DisableTransformFeedbackPacking = GL_TRUE;
+
unsigned max_fb_fetch_rts = screen->get_param(screen, PIPE_CAP_FBFETCH);
bool coherent_fb_fetch =
screen->get_param(screen, PIPE_CAP_FBFETCH_COHERENT);