wined3d: Make some functions static.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2021-04-15 17:52:35 +02:00 committed by Alexandre Julliard
parent 6ac02c0cac
commit 39263558a2
4 changed files with 8 additions and 8 deletions

View File

@ -4279,13 +4279,13 @@ static void adapter_gl_destroy_device(struct wined3d_device *device)
heap_free(device_gl);
}
struct wined3d_context *adapter_gl_acquire_context(struct wined3d_device *device,
static struct wined3d_context *adapter_gl_acquire_context(struct wined3d_device *device,
struct wined3d_texture *texture, unsigned int sub_resource_idx)
{
return wined3d_context_gl_acquire(device, texture, sub_resource_idx);
}
void adapter_gl_release_context(struct wined3d_context *context)
static void adapter_gl_release_context(struct wined3d_context *context)
{
return wined3d_context_gl_release(wined3d_context_gl(context));
}

View File

@ -536,7 +536,7 @@ static void adapter_vk_destroy_device(struct wined3d_device *device)
heap_free(device_vk);
}
struct wined3d_context *adapter_vk_acquire_context(struct wined3d_device *device,
static struct wined3d_context *adapter_vk_acquire_context(struct wined3d_device *device,
struct wined3d_texture *texture, unsigned int sub_resource_idx)
{
TRACE("device %p, texture %p, sub_resource_idx %u.\n", device, texture, sub_resource_idx);
@ -549,7 +549,7 @@ struct wined3d_context *adapter_vk_acquire_context(struct wined3d_device *device
return &wined3d_device_vk(device)->context_vk.c;
}
void adapter_vk_release_context(struct wined3d_context *context)
static void adapter_vk_release_context(struct wined3d_context *context)
{
TRACE("context %p.\n", context);
}

View File

@ -2687,7 +2687,7 @@ static void adapter_no3d_destroy_device(struct wined3d_device *device)
heap_free(device);
}
struct wined3d_context *adapter_no3d_acquire_context(struct wined3d_device *device,
static struct wined3d_context *adapter_no3d_acquire_context(struct wined3d_device *device,
struct wined3d_texture *texture, unsigned int sub_resource_idx)
{
TRACE("device %p, texture %p, sub_resource_idx %u.\n", device, texture, sub_resource_idx);
@ -2700,7 +2700,7 @@ struct wined3d_context *adapter_no3d_acquire_context(struct wined3d_device *devi
return &wined3d_device_no3d(device)->context_no3d;
}
void adapter_no3d_release_context(struct wined3d_context *context)
static void adapter_no3d_release_context(struct wined3d_context *context)
{
TRACE("context %p.\n", context);
}
@ -3044,7 +3044,7 @@ static void adapter_no3d_dispatch_compute(struct wined3d_device *device,
ERR("device %p, state %p, parameters %p.\n", device, state, parameters);
}
void adapter_no3d_clear_uav(struct wined3d_context *context,
static void adapter_no3d_clear_uav(struct wined3d_context *context,
struct wined3d_unordered_access_view *view, const struct wined3d_uvec4 *clear_value)
{
ERR("context %p, view %p, clear_value %s.\n", context, view, debug_uvec4(clear_value));

View File

@ -419,7 +419,7 @@ static void shader_glsl_add_version_declaration(struct wined3d_string_buffer *bu
shader_addline(buffer, "#version %u\n", shader_glsl_get_version(gl_info));
}
unsigned int shader_glsl_full_ffp_varyings(const struct wined3d_gl_info *gl_info)
static unsigned int shader_glsl_full_ffp_varyings(const struct wined3d_gl_info *gl_info)
{
/* On core profile we have to also count diffuse and specular colours and
* the fog coordinate. */