Skip to content

Commit 3d54c52

Browse files
authored
Merge pull request #20490 from hrydgard/remove-dx9-remains
Remove some D3D9 leftovers
2 parents 87baa69 + fd59e7a commit 3d54c52

File tree

7 files changed

+3
-76
lines changed

7 files changed

+3
-76
lines changed

Common/GPU/thin3d.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ enum class CullMode : uint8_t {
172172
NONE,
173173
FRONT,
174174
BACK,
175-
FRONT_AND_BACK, // Not supported on D3D9
175+
FRONT_AND_BACK,
176176
};
177177

178178
enum class Facing {
@@ -798,11 +798,6 @@ class DrawContext {
798798
// Framebuffer fetch / input attachment support, needs to be explicit in Vulkan.
799799
virtual void BindCurrentFramebufferForColorInput() {}
800800

801-
// deprecated, only used by D3D9
802-
virtual uintptr_t GetFramebufferAPITexture(Framebuffer *fbo, Aspect aspect, int attachment) {
803-
return 0;
804-
}
805-
806801
virtual void GetFramebufferDimensions(Framebuffer *fbo, int *w, int *h) = 0;
807802

808803
// Could be useful in OpenGL ES to give hints about framebuffers on tiler GPUs

GPU/Common/FragmentShaderGenerator.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,6 @@
2323

2424
struct FShaderID;
2525

26-
// D3D9 float constants
27-
28-
#define CONST_PS_TEXENV 0
29-
#define CONST_PS_ALPHACOLORREF 1
30-
#define CONST_PS_ALPHACOLORMASK 2
31-
#define CONST_PS_FOGCOLOR 3
32-
#define CONST_PS_STENCILREPLACE 4
33-
#define CONST_PS_BLENDFIXA 5
34-
#define CONST_PS_BLENDFIXB 6
35-
#define CONST_PS_FBOTEXSIZE 7
36-
#define CONST_PS_TEXCLAMP 8
37-
#define CONST_PS_TEXCLAMPOFF 9
38-
#define CONST_PS_MIPBIAS 10
39-
#define CONST_PS_TEX_NO_ALPHA_MUL 11
40-
41-
// For stencil upload
42-
#define BCONST_PS_STENCILVALUE 13
43-
44-
// D3D9 bool constants, they have their own register space.
45-
46-
4726
// Can technically be deduced from the fragment shader ID, but this is safer.
4827
enum class FragmentShaderFlags : u32 {
4928
USES_DISCARD = 2,

GPU/Common/VertexShaderGenerator.h

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,39 +32,3 @@ enum class VertexShaderFlags : u32 {
3232
ENUM_CLASS_BITOPS(VertexShaderFlags);
3333

3434
bool GenerateVertexShader(const VShaderID &id, char *buffer, const ShaderLanguageDesc &compat, const Draw::Bugs bugs, uint32_t *attrMask, uint64_t *uniformMask, VertexShaderFlags *vertexShaderFlags, std::string *errorString);
35-
36-
// D3D9 constants.
37-
enum {
38-
CONST_VS_PROJ = 0,
39-
CONST_VS_PROJ_THROUGH = 4,
40-
CONST_VS_VIEW = 8,
41-
CONST_VS_WORLD = 11,
42-
CONST_VS_TEXMTX = 14,
43-
CONST_VS_UVSCALEOFFSET = 17,
44-
CONST_VS_FOGCOEF = 18,
45-
CONST_VS_AMBIENT = 19,
46-
CONST_VS_MATAMBIENTALPHA = 20,
47-
CONST_VS_MATDIFFUSE = 21,
48-
CONST_VS_MATSPECULAR = 22,
49-
CONST_VS_MATEMISSIVE = 23,
50-
CONST_VS_LIGHTPOS = 24,
51-
CONST_VS_LIGHTDIR = 28,
52-
CONST_VS_LIGHTATT = 32,
53-
CONST_VS_LIGHTANGLE_SPOTCOEF = 36,
54-
CONST_VS_LIGHTDIFFUSE = 40,
55-
CONST_VS_LIGHTSPECULAR = 44,
56-
CONST_VS_LIGHTAMBIENT = 48,
57-
CONST_VS_DEPTHRANGE = 52,
58-
CONST_VS_BONE0 = 53,
59-
CONST_VS_BONE1 = 56,
60-
CONST_VS_BONE2 = 59,
61-
CONST_VS_BONE3 = 62,
62-
CONST_VS_BONE4 = 65,
63-
CONST_VS_BONE5 = 68,
64-
CONST_VS_BONE6 = 71,
65-
CONST_VS_BONE7 = 74,
66-
CONST_VS_BONE8 = 77,
67-
CONST_VS_CULLRANGEMIN = 80,
68-
CONST_VS_CULLRANGEMAX = 81,
69-
CONST_VS_ROTATION = 82,
70-
};

Windows/zipup.cmd

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ del %name%
1313

1414
echo Adding files to %name%
1515
REM Not distributing the 10 version because it's not compatible with older Windows.
16-
copy dx9sdk\8.1\Redist\D3D\x64\d3dcompiler_47.dll .
17-
copy dx9sdk\8.1\Redist\D3D\x86\d3dcompiler_47.dll .\d3dcompiler_47.x86.dll
1816
@echo on
19-
zip --recurse-paths %name% assets PPSSPPWindows.exe PPSSPPWindows64.exe d3dcompiler_47.dll d3dcompiler_47.x86.dll README.md
17+
zip --recurse-paths %name% assets PPSSPPWindows.exe PPSSPPWindows64.exe README.md
2018
@echo off
21-
del d3dcompiler_47.dll d3dcompiler_v47.x86.dll
2219

2320
echo Done: %name%
2421
goto DONE

libretro/LibretroGraphicsContext.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ LibretroGraphicsContext *LibretroGraphicsContext::CreateGraphicsContext() {
140140
return ctx;
141141
}
142142
delete ctx;
143-
144-
ctx = new LibretroD3D9Context();
145-
if (ctx->Init()) {
146-
return ctx;
147-
}
148-
delete ctx;
149143
}
150144
#endif
151145

libretro/Makefile.common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ SOURCES_CXX += \
998998
$(COMMONDIR)/GPU/D3D11/D3D11Loader.cpp \
999999
$(COMMONDIR)/GPU/D3D11/thin3d_d3d11.cpp
10001000

1001-
INCFLAGS += -I$(CORE_DIR)/dx9sdk/Include -I$(CORE_DIR)/dx9sdk/Include/DX11
1001+
INCFLAGS += -I$(CORE_DIR)/dx9sdk/Include/DX11
10021002

10031003
endif
10041004

ppsspp.iss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ Source: "assets\debugger\*"; DestDir: "{app}\assets\debugger"; Flags: recursesub
102102
Source: "assets\lang\*.ini"; DestDir: "{app}\assets\lang"
103103
Source: "assets\flash0\font\*.*"; DestDir: "{app}\assets\flash0\font"
104104
Source: "assets\vfpu\*.*"; DestDir: "{app}\assets\vfpu"
105-
Source: "dx9sdk\8.1\Redist\D3D\x64\d3dcompiler_47.dll"; DestDir: "{app}"
106-
Source: "dx9sdk\8.1\Redist\D3D\x86\d3dcompiler_47.dll"; DestName: "d3dcompiler_47.x86.dll"; DestDir: "{app}"
107105

108106
[Run]
109107
Filename: {app}\PPSSPPWindows.exe; Description: {cm:LaunchProgram,{#ApplicationName}}; Flags: nowait postinstall skipifsilent; Check: not IsWin64

0 commit comments

Comments
 (0)