nv50: disable stream output before reconfiguring it

If we don't, the GPU will just throw an ILLEGAL_OPERATION error.
This commit is contained in:
Christoph Bumiller 2012-06-14 23:30:49 +02:00
parent ef51ce522b
commit 169a0ae40a

View file

@ -552,9 +552,9 @@ nv50_stream_output_validate(struct nv50_context *nv50)
so = nv50->gmtyprog ? nv50->gmtyprog->so : nv50->vertprog->so;
BEGIN_NV04(push, NV50_3D(STRMOUT_ENABLE), 1);
PUSH_DATA (push, 0);
if (!so || !nv50->num_so_targets) {
BEGIN_NV04(push, NV50_3D(STRMOUT_ENABLE), 1);
PUSH_DATA (push, 0);
if (nv50->screen->base.class_3d < NVA0_3D_CLASS) {
BEGIN_NV04(push, NV50_3D(STRMOUT_PRIMITIVE_LIMIT), 1);
PUSH_DATA (push, 0);