[Mesa-dev] [PATCH] draw: don't clear the so targets until we stream out
zackr at vmware.com
Thu Jun 13 18:01:49 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).
Actually I'd just like to commit the attached patch. All it does is move
the clearing of the so targets from the drivers to the draw module. It fixes
a bug in softpipe, because softpipe would never clear the buffers and would
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7083 bytes
Desc: not available
More information about the mesa-dev