From 169a0ae40aed27e3f61ac5989b05f0014dab6525 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Thu, 14 Jun 2012 23:30:49 +0200 Subject: [PATCH] nv50: disable stream output before reconfiguring it If we don't, the GPU will just throw an ILLEGAL_OPERATION error. --- src/gallium/drivers/nv50/nv50_shader_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/nv50/nv50_shader_state.c b/src/gallium/drivers/nv50/nv50_shader_state.c index df6764b216f..1ddcd3c67e7 100644 --- a/src/gallium/drivers/nv50/nv50_shader_state.c +++ b/src/gallium/drivers/nv50/nv50_shader_state.c @@ -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); -- 2.30.2