Skip to content

Commit

Permalink
Fix border color
Browse files Browse the repository at this point in the history
  • Loading branch information
roamic committed Nov 19, 2024
1 parent 8fbd918 commit c9847d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/video_core/amdgpu/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ enum class MipFilter : u64 {
};

enum class BorderColor : u64 {
OpaqueBlack = 0,
TransparentBlack = 1,
TransparentBlack = 0,
OpaqueBlack = 1,
White = 2,
Custom = 3,
};
Expand Down
4 changes: 2 additions & 2 deletions src/video_core/renderer_vulkan/liverpool_to_vk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,10 @@ vk::SamplerMipmapMode MipFilter(AmdGpu::MipFilter filter) {

vk::BorderColor BorderColor(AmdGpu::BorderColor color) {
switch (color) {
case AmdGpu::BorderColor::OpaqueBlack:
return vk::BorderColor::eFloatOpaqueBlack;
case AmdGpu::BorderColor::TransparentBlack:
return vk::BorderColor::eFloatTransparentBlack;
case AmdGpu::BorderColor::OpaqueBlack:
return vk::BorderColor::eFloatOpaqueBlack;
case AmdGpu::BorderColor::White:
return vk::BorderColor::eFloatOpaqueWhite;
case AmdGpu::BorderColor::Custom:
Expand Down

0 comments on commit c9847d4

Please sign in to comment.