On 22 August 2013 13:07, Stefan Dösinger stefan@codeweavers.com wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2013-08-22 12:58, schrieb Henri Verbeet:
Yes, but if "pool" goes away we need some other way to check for scratch resources. It's just that in retrospect the access flags probably aren't the right place.
If pool goes to d3d8/9, the checks should go to d3d8/9 as well.
You can't do that properly. The basic issue is that some formats are valid for scratch resources, but aren't for sysmem resources. (There are a bunch of other restrictions we don't currently check on resource creation either, but that's not the point here.) So we need some way to determine if a resource is a scratch resource or not in wined3d, at the very least on resource creation.