meta: Add missing newlines to end of files

Remove trailing whitespace also

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2020-11-05 15:52:02 +00:00 committed by Hans-Kristian Arntzen
parent a18da4560d
commit 8dea487861
42 changed files with 57 additions and 57 deletions

View File

@ -6,4 +6,4 @@ vkd3d:
artifacts:
name: "vkd3d-${CI_COMMIT_REF_NAME}.${CI_COMMIT_SHA}"
paths:
- build/vkd3d-release
- build/vkd3d-release

View File

@ -21,4 +21,4 @@ bindir = 'bin'
system = 'linux'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
endian = 'little'

View File

@ -291,7 +291,7 @@ static double cxg_get_time(void)
static void cxg_render_frame(struct cx_gears *cxg)
{
static double t_prev = -1.0;
static double t_prev = -1.0;
double dt, t;
float a;

View File

@ -30,4 +30,4 @@ executable('triangle', 'triangle.c',
include_directories : vkd3d_public_includes,
install : true,
gui_app : true,
override_options : [ 'c_std='+vkd3d_c_std ])
override_options : [ 'c_std='+vkd3d_c_std ])

View File

@ -123,7 +123,7 @@ static inline bool hash_map_should_grow_before_insert(struct hash_map *hash_map)
static inline struct hash_map_entry *hash_map_find(const struct hash_map *hash_map, const void *key)
{
uint32_t hash_value, entry_idx;
if (!hash_map->entries)
return NULL;

View File

@ -114,7 +114,7 @@ FORCEINLINE uint32_t vkd3d_atomic_uint32_decrement(uint32_t *target, vkd3d_memor
#define vkd3d_memory_order_acquire __ATOMIC_ACQUIRE
#define vkd3d_memory_order_release __ATOMIC_RELEASE
#define vkd3d_memory_order_acq_rel __ATOMIC_ACQ_REL
#define vkd3d_memory_order_seq_cst __ATOMIC_SEQ_CST
#define vkd3d_memory_order_seq_cst __ATOMIC_SEQ_CST
# define vkd3d_atomic_uint32_load_explicit(target, order) __atomic_load_n(target, order)
# define vkd3d_atomic_uint32_store_explicit(target, value, order) __atomic_store_n(target, value, order)
@ -134,4 +134,4 @@ FORCEINLINE uint32_t vkd3d_atomic_uint32_decrement(uint32_t *target, vkd3d_memor
#endif
#endif
#endif

View File

@ -39,4 +39,4 @@ const char *vkd3d_dlerror(void);
bool vkd3d_get_program_name(char program_name[VKD3D_PATH_MAX]);
#endif
#endif

View File

@ -36,4 +36,4 @@ interface IWineDXGISwapChainFactory : IUnknown
[in] IDXGIOutput *pRestrictToOutput,
[out] IDXGISwapChain1 **ppSwapChain
);
}
}

View File

@ -69,4 +69,4 @@
#define VKD3D_NO_VULKAN_H
#include <vkd3d.h>
#endif
#endif

View File

@ -8,4 +8,4 @@ EXPORTS
D3D12EnableExperimentalFeatures @110
D3D12SerializeRootSignature @115
D3D12SerializeVersionedRootSignature @116
D3D12SerializeVersionedRootSignature @116

View File

@ -13,4 +13,4 @@ d3d12_lib = shared_library('d3d12', d3d12_src,
d3d12_dep = declare_dependency(
link_with : d3d12_lib,
include_directories : vkd3d_public_includes)
include_directories : vkd3d_public_includes)

View File

@ -4,4 +4,4 @@ subdir('vkd3d')
subdir('vkd3d-utils')
if enable_d3d12
subdir('d3d12')
endif
endif

View File

@ -15,4 +15,4 @@ vkd3d_shader_lib = static_library('vkd3d-shader', vkd3d_shader_src,
vkd3d_shader_dep = declare_dependency(
link_with : vkd3d_shader_lib,
dependencies : vkd3d_common_dep,
include_directories : vkd3d_public_includes)
include_directories : vkd3d_public_includes)

View File

@ -3427,7 +3427,7 @@ static uint32_t vkd3d_dxbc_compiler_emit_abs(struct vkd3d_dxbc_compiler *compile
{
struct vkd3d_spirv_builder *builder = &compiler->spirv_builder;
uint32_t type_id;
type_id = vkd3d_dxbc_compiler_get_type_id_for_reg(compiler, reg, write_mask);
if (reg->data_type == VKD3D_DATA_FLOAT || reg->data_type == VKD3D_DATA_DOUBLE)
return vkd3d_spirv_build_op_glsl_std450_fabs(builder, type_id, val_id);

View File

@ -218,7 +218,7 @@ unsigned int vkd3d_shader_scan_get_register_flags(const struct vkd3d_shader_scan
key.register_type = type;
key.register_id = id;
e = hash_map_find(&scan_info->register_map, &key);
return e ? e->flags : 0u;
}

View File

@ -286,7 +286,7 @@ enum VKD3D_SHADER_INSTRUCTION_HANDLER
VKD3DSIH_DMUL,
VKD3DSIH_DEQ,
VKD3DSIH_DGE,
VKD3DSIH_DLT,
VKD3DSIH_DLT,
VKD3DSIH_DNE,
VKD3DSIH_DMOV,
VKD3DSIH_DMOVC,

View File

@ -16,4 +16,4 @@ vkd3d_utils_lib = shared_library('vkd3d-proton-utils', vkd3d_utils_src,
vkd3d_utils_dep = declare_dependency(
link_with : vkd3d_utils_lib,
include_directories : vkd3d_public_includes)
include_directories : vkd3d_public_includes)

View File

@ -8282,7 +8282,7 @@ static void *d3d12_command_queue_submission_worker_main(void *userdata)
break;
case VKD3D_SUBMISSION_BIND_SPARSE:
d3d12_command_queue_bind_sparse(queue, submission.bind_sparse.mode,
d3d12_command_queue_bind_sparse(queue, submission.bind_sparse.mode,
submission.bind_sparse.dst_resource, submission.bind_sparse.src_resource,
submission.bind_sparse.bind_count, submission.bind_sparse.bind_infos);
vkd3d_free(submission.bind_sparse.bind_infos);

View File

@ -318,4 +318,4 @@ void vkd3d_shader_debug_ring_end_command_buffer(struct d3d12_command_list *list)
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_HOST_BIT, 0,
1, &barrier, 0, NULL, 0, NULL));
}
}
}

View File

@ -4267,7 +4267,7 @@ static void d3d12_device_caps_init_feature_options1(struct d3d12_device *device)
const VkPhysicalDeviceShaderCorePropertiesAMD *amd = &device->device_info.shader_core_properties;
const VkPhysicalDeviceShaderCoreProperties2AMD *amd2 = &device->device_info.shader_core_properties2;
uint32_t compute_units;
if (device->vk_info.AMD_shader_core_properties2)
compute_units = amd2->activeComputeUnitCount;
else

View File

@ -152,4 +152,4 @@ bool vkd3d_get_program_name(char program_name[VKD3D_PATH_MAX])
return false;
}
#endif
#endif

View File

@ -284,4 +284,4 @@ void vkd3d_renderdoc_command_queue_end_capture(struct d3d12_command_queue *comma
}
else
vkd3d_renderdoc_end_capture(command_queue->device->vkd3d_instance->vk_instance);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
int thread_id = int(gl_GlobalInvocationID.x);
if (thread_id < u_info.dst_extent.x)
imageStore(dst, u_info.dst_offset.x + thread_id, u_info.clear_value);
}
}

View File

@ -16,7 +16,7 @@ uniform u_info_t {
void main() {
int thread_id = int(gl_GlobalInvocationID.x);
if (thread_id < u_info.dst_extent.x)
dst.data[u_info.dst_offset.x + thread_id] = u_info.clear_value.x;
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
int thread_id = int(gl_GlobalInvocationID.x);
if (thread_id < u_info.dst_extent.x)
imageStore(dst, u_info.dst_offset.x + thread_id, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (thread_id.x < u_info.dst_extent.x)
imageStore(dst, ivec2(u_info.dst_offset.x + thread_id.x, thread_id.y), u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (thread_id.x < u_info.dst_extent.x)
imageStore(dst, ivec2(u_info.dst_offset.x + thread_id.x, thread_id.y), u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (thread_id.x < u_info.dst_extent.x)
imageStore(dst, u_info.dst_offset.x + thread_id.x, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (thread_id.x < u_info.dst_extent.x)
imageStore(dst, u_info.dst_offset.x + thread_id.x, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy)))
imageStore(dst, ivec3(u_info.dst_offset.xy + thread_id.xy, thread_id.z), u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy)))
imageStore(dst, ivec3(u_info.dst_offset.xy + thread_id.xy, thread_id.z), u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy)))
imageStore(dst, u_info.dst_offset.xy + thread_id.xy, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent.xy)))
imageStore(dst, u_info.dst_offset.xy + thread_id.xy, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent)))
imageStore(dst, ivec3(u_info.dst_offset.xy, 0) + thread_id.xyz, u_info.clear_value);
}
}

View File

@ -14,7 +14,7 @@ uniform u_info_t {
void main() {
ivec3 thread_id = ivec3(gl_GlobalInvocationID);
if (all(lessThan(thread_id.xy, u_info.dst_extent)))
imageStore(dst, ivec3(u_info.dst_offset.xy, 0) + thread_id.xyz, u_info.clear_value);
}
}

View File

@ -26,4 +26,4 @@ void main() {
if (c_mode == MODE_2D) value = texelFetch(tex_2d, coord, 0).r;
if (c_mode == MODE_MS) value = texelFetch(tex_ms, coord, gl_SampleID).r;
gl_FragDepth = o_color = value;
}
}

View File

@ -13,4 +13,4 @@ void main() {
}
EndPrimitive();
}
}

View File

@ -8,4 +8,4 @@ void main() {
float(gl_VertexIndex & 1) * 4.0f - 1.0f,
float(gl_VertexIndex & 2) * 2.0f - 1.0f,
0.0f, 1.0f);
}
}

View File

@ -8,4 +8,4 @@ void main() {
float(gl_VertexIndex & 1) * 4.0f - 1.0f,
float(gl_VertexIndex & 2) * 2.0f - 1.0f,
0.0f, 1.0f);
}
}

View File

@ -19,7 +19,7 @@
* This file uses extracts from the Wine project
* specifically dlls/wined3d/swapchain.c and dlls/dxgi/swapchain.c
* the license is as follows:
*
*
* Copyright 2002-2003 Jason Edmeades
* Copyright 2002-2003 Raphael Junqueira
* Copyright 2005 Oliver Stieber
@ -315,7 +315,7 @@ static HRESULT d3d12_output_set_display_mode(IDXGIOutput *output, DXGI_MODE_DESC
ERR("Interlacing mode not supported.");
return DXGI_ERROR_NOT_CURRENTLY_AVAILABLE;
}
}
}
else

View File

@ -990,7 +990,7 @@ struct d3d12_pipeline_state
VkPipelineBindPoint vk_bind_point;
VkPipelineCache vk_pso_cache;
ID3D12RootSignature *private_root_signature;
ID3D12RootSignature *private_root_signature;
struct d3d12_device *device;
struct vkd3d_private_store private_store;

View File

@ -2,4 +2,4 @@ executable('vkd3d-proton-compiler', 'main.c',
dependencies : [ vkd3d_shader_dep, threads_dep ],
include_directories : vkd3d_private_includes,
install : true,
override_options : [ 'c_std='+vkd3d_c_std ])
override_options : [ 'c_std='+vkd3d_c_std ])