diff options
author | Christoph Bumiller <[email protected]> | 2012-06-14 23:30:49 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-06-14 23:30:49 +0200 |
commit | 169a0ae40aed27e3f61ac5989b05f0014dab6525 (patch) | |
tree | d3bfeeb88cfdcc254addf3e3119462ba0fee54c8 | |
parent | ef51ce522bbb0a9bb3e6faa4890049b21f533aed (diff) |
nv50: disable stream output before reconfiguring it
If we don't, the GPU will just throw an ILLEGAL_OPERATION error.
-rw-r--r-- | src/gallium/drivers/nv50/nv50_shader_state.c | 4 |
1 files 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); |