[Mesa-dev] [PATCH] draw: don't clear the so targets until we stream out

Zack Rusin zackr at vmware.com
Thu Jun 13 17:33:24 PDT 2013


> Though I find stream output very confusing...

I agree. I was digging a bit more and I think I was correct the first time. The D3D spec is very clear that "a buffer cannot be bound as both an input and an output at the same time", so I think the current behavior is correct, or at least one of the correct options given that the behavior is simply undefined. So I think I'm going to skip this patch, especially that is is subtly wrong (because it will clear so target buffers on each invocation of the stream output stage which isn't correct behavior since the buffers should only be cleared when new so targets are set).

z


More information about the mesa-dev mailing list