mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Remove another unused GPU_USE_* flag
This commit is contained in:
@@ -76,13 +76,11 @@ GPU_D3D11::GPU_D3D11(GraphicsContext *gfxCtx, Draw::DrawContext *draw)
|
||||
textureCache_->NotifyConfigChanged();
|
||||
}
|
||||
|
||||
GPU_D3D11::~GPU_D3D11() {
|
||||
}
|
||||
GPU_D3D11::~GPU_D3D11() {}
|
||||
|
||||
u32 GPU_D3D11::CheckGPUFeatures() const {
|
||||
u32 features = GPUCommonHW::CheckGPUFeatures();
|
||||
|
||||
features |= GPU_USE_TEXTURE_FLOAT;
|
||||
features |= GPU_USE_TEXTURE_LOD_CONTROL;
|
||||
|
||||
uint32_t fmt4444 = draw_->GetDataFormatSupport(Draw::DataFormat::A4R4G4B4_UNORM_PACK16);
|
||||
|
||||
@@ -131,11 +131,9 @@ u32 GPU_GLES::CheckGPUFeatures() const {
|
||||
|
||||
features |= GPU_USE_16BIT_FORMATS;
|
||||
|
||||
if (gl_extensions.GLES3 || !gl_extensions.IsGLES)
|
||||
if (gl_extensions.GLES3 || !gl_extensions.IsGLES) {
|
||||
features |= GPU_USE_TEXTURE_LOD_CONTROL;
|
||||
|
||||
if (gl_extensions.ARB_texture_float || gl_extensions.OES_texture_float)
|
||||
features |= GPU_USE_TEXTURE_FLOAT;
|
||||
}
|
||||
|
||||
if (!draw_->GetShaderLanguageDesc().bitwiseOps) {
|
||||
features |= GPU_USE_FRAGMENT_TEST_CACHE;
|
||||
|
||||
+1
-1
@@ -381,7 +381,7 @@ static constexpr const char * g_gpuUseFlagNames[32] = {
|
||||
"GPU_USE_CLEAR_RAM_HACK",
|
||||
"N/A",
|
||||
"N/A",
|
||||
"GPU_USE_TEXTURE_FLOAT",
|
||||
"N/A",
|
||||
"GPU_USE_16BIT_FORMATS",
|
||||
"GPU_USE_DEPTH_CLAMP",
|
||||
"GPU_USE_TEXTURE_LOD_CONTROL",
|
||||
|
||||
+1
-3
@@ -475,9 +475,7 @@ enum : u32 {
|
||||
// Free bits: 6-7
|
||||
GPU_USE_ANISOTROPY = FLAG_BIT(8),
|
||||
GPU_USE_CLEAR_RAM_HACK = FLAG_BIT(9),
|
||||
// Free bit: 10
|
||||
// Free bit: 11
|
||||
GPU_USE_TEXTURE_FLOAT = FLAG_BIT(12),
|
||||
// Free bit: 10-12
|
||||
GPU_USE_16BIT_FORMATS = FLAG_BIT(13),
|
||||
GPU_USE_DEPTH_CLAMP = FLAG_BIT(14),
|
||||
GPU_USE_TEXTURE_LOD_CONTROL = FLAG_BIT(15),
|
||||
|
||||
@@ -214,7 +214,6 @@ u32 GPU_Vulkan::CheckGPUFeatures() const {
|
||||
|
||||
// Mandatory features on Vulkan, which may be checked in "centralized" code
|
||||
features |= GPU_USE_TEXTURE_LOD_CONTROL;
|
||||
features |= GPU_USE_TEXTURE_FLOAT;
|
||||
|
||||
if (!draw_->GetBugs().Has(Draw::Bugs::PVR_BAD_16BIT_TEXFORMATS)) {
|
||||
// These are VULKAN_4444_FORMAT and friends.
|
||||
|
||||
Reference in New Issue
Block a user