mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
CI: Sync configuration with 4.4 branch
Includes cherry-picks of warning fixes froma44f691fc7and8d1462c748.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import methods
|
||||
|
||||
Import("env")
|
||||
|
||||
env_d3d12_rdd = env.Clone()
|
||||
@@ -139,6 +141,10 @@ else:
|
||||
("__REQUIRED_RPCNDR_H_VERSION__", 475),
|
||||
"HAVE_STRUCT_TIMESPEC",
|
||||
]
|
||||
if methods.using_gcc(env) and methods.get_compiler_version(env)["major"] < 13:
|
||||
# `region` & `endregion` not recognized as valid pragmas.
|
||||
env_d3d12_rdd.Append(CCFLAGS=["-Wno-unknown-pragmas"])
|
||||
env.Append(CCFLAGS=["-Wno-unknown-pragmas"])
|
||||
|
||||
# This is needed since rendering_device_d3d12.cpp needs to include some Mesa internals.
|
||||
env_d3d12_rdd.Prepend(CPPPATH=mesa_private_inc_paths)
|
||||
|
||||
@@ -96,7 +96,7 @@ void compute_dxil_hash(const BYTE *pData, UINT byteCount, BYTE *pOutHash) {
|
||||
UINT NextEndState = bTwoRowsPadding ? N - 2 : N - 1;
|
||||
const BYTE *pCurrData = pData;
|
||||
for (UINT i = 0; i < N; i++, offset += 64, pCurrData += 64) {
|
||||
UINT x[16];
|
||||
UINT x[16] = {};
|
||||
const UINT *pX;
|
||||
if (i == NextEndState) {
|
||||
if (!bTwoRowsPadding && i == N - 1) {
|
||||
|
||||
@@ -1415,7 +1415,14 @@ RDD::TextureID RenderingDeviceDriverD3D12::texture_create(const TextureFormat &p
|
||||
}
|
||||
tex_info->states_ptr = &tex_info->owner_info.states;
|
||||
tex_info->format = p_format.format;
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif
|
||||
tex_info->desc = *(CD3DX12_RESOURCE_DESC *)&resource_desc;
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
tex_info->base_layer = 0;
|
||||
tex_info->layers = resource_desc.ArraySize();
|
||||
tex_info->base_mip = 0;
|
||||
@@ -6621,8 +6628,6 @@ static Error create_command_signature(ID3D12Device *device, D3D12_INDIRECT_ARGUM
|
||||
|
||||
Error RenderingDeviceDriverD3D12::_initialize_frames(uint32_t p_frame_count) {
|
||||
Error err;
|
||||
D3D12MA::ALLOCATION_DESC allocation_desc = {};
|
||||
allocation_desc.HeapType = D3D12_HEAP_TYPE_DEFAULT;
|
||||
|
||||
//CD3DX12_RESOURCE_DESC resource_desc = CD3DX12_RESOURCE_DESC::Buffer(D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT);
|
||||
uint32_t resource_descriptors_per_frame = GLOBAL_GET("rendering/rendering_device/d3d12/max_resource_descriptors_per_frame");
|
||||
|
||||
Reference in New Issue
Block a user