mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-01 15:08:57 +02:00
[gl, vk] SupportLinearFilter patch
This commit is contained in:
parent
e366f702ef
commit
f5668bada0
2 changed files with 12 additions and 0 deletions
|
|
@ -692,6 +692,15 @@ bool TextureCacheRuntime::HasNativeASTC() const noexcept {
|
||||||
return device.HasASTC();
|
return device.HasASTC();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TextureCacheRuntime::SupportsLinearFilter(VideoCore::Surface::PixelFormat format) const noexcept {
|
||||||
|
using VideoCore::Surface::GetFormatType;
|
||||||
|
using VideoCore::Surface::IsPixelFormatInteger;
|
||||||
|
if (IsPixelFormatInteger(format)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return GetFormatType(format) == VideoCore::Surface::SurfaceType::ColorTexture;
|
||||||
|
}
|
||||||
|
|
||||||
Image::Image(TextureCacheRuntime& runtime_, const VideoCommon::ImageInfo& info_, GPUVAddr gpu_addr_,
|
Image::Image(TextureCacheRuntime& runtime_, const VideoCommon::ImageInfo& info_, GPUVAddr gpu_addr_,
|
||||||
VAddr cpu_addr_)
|
VAddr cpu_addr_)
|
||||||
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), runtime{&runtime_} {
|
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), runtime{&runtime_} {
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
#include "video_core/renderer_opengl/gl_resource_manager.h"
|
#include "video_core/renderer_opengl/gl_resource_manager.h"
|
||||||
#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
|
#include "video_core/renderer_opengl/gl_staging_buffer_pool.h"
|
||||||
#include "video_core/renderer_opengl/util_shaders.h"
|
#include "video_core/renderer_opengl/util_shaders.h"
|
||||||
|
#include "video_core/surface.h"
|
||||||
#include "video_core/texture_cache/image_view_base.h"
|
#include "video_core/texture_cache/image_view_base.h"
|
||||||
#include "video_core/texture_cache/texture_cache_base.h"
|
#include "video_core/texture_cache/texture_cache_base.h"
|
||||||
|
|
||||||
|
|
@ -132,6 +133,8 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool SupportsLinearFilter(VideoCore::Surface::PixelFormat format) const noexcept;
|
||||||
|
|
||||||
bool HasBrokenTextureViewFormats() const noexcept {
|
bool HasBrokenTextureViewFormats() const noexcept {
|
||||||
return has_broken_texture_view_formats;
|
return has_broken_texture_view_formats;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue