Commit bff2bbc9 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Rename resource_acquire to resource_reference.

parent 081ba0ee
...@@ -253,7 +253,7 @@ void resource_cleanup(struct wined3d_resource *resource) ...@@ -253,7 +253,7 @@ void resource_cleanup(struct wined3d_resource *resource)
device_resource_released(resource->device, resource); device_resource_released(resource->device, resource);
} }
wined3d_resource_acquire(resource); wined3d_resource_reference(resource);
wined3d_cs_destroy_object(resource->device->cs, wined3d_resource_destroy_object, resource); wined3d_cs_destroy_object(resource->device->cs, wined3d_resource_destroy_object, resource);
} }
......
...@@ -4916,8 +4916,8 @@ struct wined3d_device_context_ops ...@@ -4916,8 +4916,8 @@ struct wined3d_device_context_ops
unsigned int sub_resource_idx, struct wined3d_box *box, struct upload_bo *upload_bo); unsigned int sub_resource_idx, struct wined3d_box *box, struct upload_bo *upload_bo);
void (*issue_query)(struct wined3d_device_context *context, struct wined3d_query *query, unsigned int flags); void (*issue_query)(struct wined3d_device_context *context, struct wined3d_query *query, unsigned int flags);
void (*flush)(struct wined3d_device_context *context); void (*flush)(struct wined3d_device_context *context);
void (*acquire_resource)(struct wined3d_device_context *context, struct wined3d_resource *resource); void (*reference_resource)(struct wined3d_device_context *context, struct wined3d_resource *resource);
void (*acquire_command_list)(struct wined3d_device_context *context, struct wined3d_command_list *list); void (*reference_command_list)(struct wined3d_device_context *context, struct wined3d_command_list *list);
}; };
struct wined3d_device_context struct wined3d_device_context
...@@ -5081,7 +5081,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte ...@@ -5081,7 +5081,7 @@ void wined3d_device_context_emit_update_sub_resource(struct wined3d_device_conte
HRESULT wined3d_device_context_emit_unmap(struct wined3d_device_context *context, HRESULT wined3d_device_context_emit_unmap(struct wined3d_device_context *context,
struct wined3d_resource *resource, unsigned int sub_resource_idx) DECLSPEC_HIDDEN; struct wined3d_resource *resource, unsigned int sub_resource_idx) DECLSPEC_HIDDEN;
static inline void wined3d_resource_acquire(struct wined3d_resource *resource) static inline void wined3d_resource_reference(struct wined3d_resource *resource)
{ {
const struct wined3d_cs *cs = resource->device->cs; const struct wined3d_cs *cs = resource->device->cs;
resource->access_time = cs->queue[WINED3D_CS_QUEUE_DEFAULT].head; resource->access_time = cs->queue[WINED3D_CS_QUEUE_DEFAULT].head;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment