wined3d: Remove WINED3D_RESOURCE_ACCESS_SCRATCH.

This commit is contained in:
Stefan Dösinger 2013-08-22 14:57:58 +02:00 committed by Alexandre Julliard
parent 07079d1109
commit bcb651ca80
2 changed files with 1 additions and 6 deletions

View File

@ -53,12 +53,10 @@ static DWORD resource_access_from_pool(enum wined3d_pool pool)
case WINED3D_POOL_MANAGED:
return WINED3D_RESOURCE_ACCESS_GPU | WINED3D_RESOURCE_ACCESS_CPU;
case WINED3D_POOL_SCRATCH:
case WINED3D_POOL_SYSTEM_MEM:
return WINED3D_RESOURCE_ACCESS_CPU;
case WINED3D_POOL_SCRATCH:
return WINED3D_RESOURCE_ACCESS_SCRATCH;
default:
FIXME("Unhandled pool %#x.\n", pool);
return 0;

View File

@ -1917,9 +1917,6 @@ static inline void invalidate_active_texture(const struct wined3d_device *device
#define WINED3D_RESOURCE_ACCESS_GPU 0x1
#define WINED3D_RESOURCE_ACCESS_CPU 0x2
/* SCRATCH is mostly the same as CPU, but can't be used by the GPU at all,
* not even for resource uploads. */
#define WINED3D_RESOURCE_ACCESS_SCRATCH 0x4
struct wined3d_resource_ops
{