Skip to content

Commit

Permalink
Revert "Merge branch 'google:master' into release"
Browse files Browse the repository at this point in the history
This reverts commit 15eea27, reversing
changes made to 124cfeb.
  • Loading branch information
jaremieromer committed Apr 17, 2024
1 parent 15eea27 commit 0111b79
Show file tree
Hide file tree
Showing 38 changed files with 383 additions and 27,219 deletions.
11 changes: 0 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,6 @@ if(CMAKE_OSX_ARCHITECTURES)
endif()
endif()

# Cross compiling with `cmake -A <arch>`.
if(CMAKE_GENERATOR_PLATFORM)
if(CMAKE_GENERATOR_PLATFORM MATCHES "^(Win32|win32|X86|x86)$")
set(ARCH "x86")
elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^(Win64|win64|X64|x64)$")
set(ARCH "x86_64")
elseif(CMAKE_GENERATOR_PLATFORM MATCHES "^(ARM64|Arm64|arm64)$")
set(ARCH "aarch64")
endif()
endif()

set(CMAKE_MACOSX_RPATH TRUE)

if ((CMAKE_GENERATOR MATCHES "Visual Studio") AND (CMAKE_GENERATOR_TOOLSET STREQUAL ""))
Expand Down
14 changes: 7 additions & 7 deletions src/Device/Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,19 @@ VkFormat Attachments::depthFormat() const

void Inputs::initialize(const VkPipelineVertexInputStateCreateInfo *vertexInputState, const VkPipelineDynamicStateCreateInfo *dynamicStateCreateInfo)
{
if(vertexInputState->flags != 0)
{
// Vulkan 1.2: "flags is reserved for future use." "flags must be 0"
UNSUPPORTED("vertexInputState->flags");
}

dynamicStateFlags = ParseInputsDynamicStateFlags(dynamicStateCreateInfo);

if(dynamicStateFlags.dynamicVertexInput)
{
return;
}

if(vertexInputState->flags != 0)
{
// Vulkan 1.2: "flags is reserved for future use." "flags must be 0"
UNSUPPORTED("vertexInputState->flags");
}

// Temporary in-binding-order representation of buffer strides, to be consumed below
// when considering attributes. TODO: unfuse buffers from attributes in backend, is old GL model.
uint32_t vertexStrides[MAX_VERTEX_INPUT_BINDINGS];
Expand Down Expand Up @@ -513,7 +513,7 @@ void VertexInputInterfaceState::initialize(const VkPipelineVertexInputStateCreat
{
dynamicStateFlags = allDynamicStateFlags.vertexInputInterface;

if(vertexInputState && vertexInputState->flags != 0)
if(vertexInputState->flags != 0)
{
// Vulkan 1.2: "flags is reserved for future use." "flags must be 0"
UNSUPPORTED("vertexInputState->flags");
Expand Down
3 changes: 0 additions & 3 deletions src/Device/Sampler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@ struct Sampler
VkSamplerYcbcrModelConversion ycbcrModel;
bool studioSwing; // Narrow range
bool swappedChroma; // Cb/Cr components in reverse order
FilterType chromaFilter;
VkChromaLocation chromaXOffset;
VkChromaLocation chromaYOffset;

float mipLodBias = 0.0f;
float maxAnisotropy = 0.0f;
Expand Down
Loading

0 comments on commit 0111b79

Please sign in to comment.