mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
dzn: clean up pointer syntax
The code-style we use have a space before the first asterisk for pointers. Fix a few inconsistencies. Acked-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16052>
This commit is contained in:
parent
92964d2bfd
commit
52cde4a1ad
3 changed files with 9 additions and 9 deletions
|
|
@ -651,7 +651,7 @@ dzn_pipeline_layout_create(struct dzn_device *device,
|
|||
uint32_t push_constant_size = 0;
|
||||
uint32_t push_constant_flags = 0;
|
||||
for (uint32_t j = 0; j < pCreateInfo->pushConstantRangeCount; j++) {
|
||||
const VkPushConstantRange* range = pCreateInfo->pPushConstantRanges + j;
|
||||
const VkPushConstantRange *range = pCreateInfo->pPushConstantRanges + j;
|
||||
push_constant_size = MAX2(push_constant_size, range->offset + range->size);
|
||||
push_constant_flags |= range->stageFlags;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1212,11 +1212,11 @@ vk_icdGetInstanceProcAddr(VkInstance instance,
|
|||
*/
|
||||
PUBLIC VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
|
||||
vk_icdGetPhysicalDeviceProcAddr(VkInstance _instance,
|
||||
const char* pName);
|
||||
const char *pName);
|
||||
|
||||
VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL
|
||||
vk_icdGetPhysicalDeviceProcAddr(VkInstance _instance,
|
||||
const char* pName)
|
||||
const char *pName)
|
||||
{
|
||||
VK_FROM_HANDLE(dzn_instance, instance, _instance);
|
||||
return vk_instance_get_physical_device_proc_addr(&instance->vk, pName);
|
||||
|
|
@ -1226,10 +1226,10 @@ vk_icdGetPhysicalDeviceProcAddr(VkInstance _instance,
|
|||
* suppress Wmissing-prototypes.
|
||||
*/
|
||||
PUBLIC VKAPI_ATTR VkResult VKAPI_CALL
|
||||
vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pSupportedVersion);
|
||||
vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *pSupportedVersion);
|
||||
|
||||
PUBLIC VKAPI_ATTR VkResult VKAPI_CALL
|
||||
vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t* pSupportedVersion)
|
||||
vk_icdNegotiateLoaderICDInterfaceVersion(uint32_t *pSupportedVersion)
|
||||
{
|
||||
/* For the full details on loader interface versioning, see
|
||||
* <https://github.com/KhronosGroup/Vulkan-LoaderAndValidationLayers/blob/master/loader/LoaderAndLayerInterface.md>.
|
||||
|
|
@ -1980,7 +1980,7 @@ dzn_device_create_root_sig(struct dzn_device *device,
|
|||
if (FAILED(instance->d3d12.serialize_root_sig(desc,
|
||||
&sig, &error))) {
|
||||
if (instance->debug_flags & DZN_DEBUG_SIG) {
|
||||
const char* error_msg = (const char*)ID3D10Blob_GetBufferPointer(error);
|
||||
const char *error_msg = (const char *)ID3D10Blob_GetBufferPointer(error);
|
||||
fprintf(stderr,
|
||||
"== SERIALIZE ROOT SIG ERROR =============================================\n"
|
||||
"%s\n"
|
||||
|
|
@ -2227,7 +2227,7 @@ dzn_MapMemory(VkDevice _device,
|
|||
mem->map = map;
|
||||
mem->map_size = size;
|
||||
|
||||
*ppData = ((uint8_t*) map) + offset;
|
||||
*ppData = ((uint8_t *) map) + offset;
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ d3d12_enable_gpu_validation()
|
|||
ID3D12Device1 *
|
||||
d3d12_create_device(IDXGIAdapter1 *adapter, bool experimental_features)
|
||||
{
|
||||
typedef HRESULT(WINAPI *PFN_D3D12CREATEDEVICE)(IDXGIAdapter1*, D3D_FEATURE_LEVEL, REFIID, void**);
|
||||
typedef HRESULT(WINAPI *PFN_D3D12CREATEDEVICE)(IDXGIAdapter1 *, D3D_FEATURE_LEVEL, REFIID, void **);
|
||||
PFN_D3D12CREATEDEVICE D3D12CreateDevice;
|
||||
|
||||
HMODULE d3d12_mod = LoadLibraryA("D3D12.DLL");
|
||||
|
|
@ -347,7 +347,7 @@ d3d12_create_device(IDXGIAdapter1 *adapter, bool experimental_features)
|
|||
if (experimental_features)
|
||||
#endif
|
||||
{
|
||||
typedef HRESULT(WINAPI *PFN_D3D12ENABLEEXPERIMENTALFEATURES)(UINT, const IID*, void*, UINT*);
|
||||
typedef HRESULT(WINAPI *PFN_D3D12ENABLEEXPERIMENTALFEATURES)(UINT, const IID *, void *, UINT *);
|
||||
PFN_D3D12ENABLEEXPERIMENTALFEATURES D3D12EnableExperimentalFeatures =
|
||||
(PFN_D3D12ENABLEEXPERIMENTALFEATURES)GetProcAddress(d3d12_mod, "D3D12EnableExperimentalFeatures");
|
||||
if (FAILED(D3D12EnableExperimentalFeatures(1, &D3D12ExperimentalShaderModels, NULL, NULL))) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue