mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
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:
parent
ef51ce522b
commit
169a0ae40a
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue