From: Christoph Bumiller Date: Thu, 14 Jun 2012 21:30:49 +0000 (+0200) Subject: nv50: disable stream output before reconfiguring it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=169a0ae40aed27e3f61ac5989b05f0014dab6525;p=mesa.git nv50: disable stream output before reconfiguring it If we don't, the GPU will just throw an ILLEGAL_OPERATION error. --- 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);