Gregory Hainaut
7eb0f3564b
gsdx: AVX is M_SSE == 0x500
...
0x501 is for AVX2
2015-11-13 18:29:34 +01:00
Gregory Hainaut
967cc0b37b
gsdx: align variable 'offsetof' of x64.avx with x86
2015-11-13 18:25:23 +01:00
Gregory Hainaut
3fea5779df
gsdx: align sprite test of x64.avx with x86.avx
2015-11-13 18:25:23 +01:00
Gregory Hainaut
736656f7d6
gsdx: properly defined type for xbyak
...
Compatible 64 bits and avoid local modification
2015-11-13 09:30:48 +01:00
Johannes Obermayr
f4a76c48c2
Use GLsizeiptr on Mesa >= 20150122.
...
Signed-off-by: Gregory Hainaut <gregory.hainaut@gmail.com>
2015-11-12 21:21:13 +01:00
Gregory Hainaut
9b2b024721
gsdx-linux: add the preload gs hack option
2015-11-12 21:00:10 +01:00
Gregory Hainaut
ef3aa17025
gsdx-ogl: disable useless Nvidia driver message
2015-11-12 17:04:54 +01:00
Gregory Hainaut
d67ba015c5
Merge pull request #962 from ssakash/GSDX_sizechecks
...
GSDX: Improve FB size handling
2015-11-12 12:17:31 +01:00
Gregory Hainaut
c12958bf10
gsdx: sign-compare
...
Need review
2015-11-12 12:11:44 +01:00
Gregory Hainaut
abb4cb4810
plugin API: use const char* insead of char*
...
I hope it doesn't change the ABI
v2: fix GSnull/zzogl/zerogs
v3: duplicated code on windows...
2015-11-12 12:11:42 +01:00
Jonathan Li
4eb57cde0e
gsdx: Adjust current renderer message
...
The leading space was really annoying me. Also make the variable local
instead of static.
And fix a bad indentation.
2015-11-11 18:52:52 +00:00
refractionpcsx2
52802371e4
GSdx D3D11: Workaround for Gust games, must enable sprite hack (which these games need anyway) and it will fix the squares caused by the Nvidia fix. Not a perfect solution but we can't have it both ways :(
2015-11-10 22:58:53 +00:00
willkuer
9245d3ed7e
gsdx: RendererEnum
...
1. Add GS_Renderer Enum
Replace all instances of int/uint32 renderer identifier by a strongly
typed enum and appropriate casts.
Only instances in GS[*].cpp/h classes were touched. GPU[*].cpp/h classes
do not to follow the same convention.
2. Add default renderer according to OS
The default renderer is OS dependent (Win -> Dx9HW, others -> OGLHW).
Consequently one should always check againt the appropriate default
value on config load.
The old behaviour was only - if a at all - problematic if the respective
element in the gsdx.ini was missing and probably even then didn't create
issues. The current implementation is still more stable and does not
depend on the implementation of GS.cpp -> GetConfig()
2015-11-10 00:26:39 +01:00
Jonathan Li
44d89308c9
Revert "Revert "gsdx|spu2-x: Use atlcomcli.h for CComPtr definition""
...
This reverts commit 9bb990e9ed
.
Fight! Ahem...
2015-11-09 20:55:07 +00:00
Akash
d5ba546d2e
GSDX: Improve CRTC output size handling
2015-11-09 05:52:42 +05:30
Jonathan Li
9bb990e9ed
Revert "gsdx|spu2-x: Use atlcomcli.h for CComPtr definition"
...
This reverts commit 0eb771c2a6
.
The buildbot apparently cannot find atlcomcli.h. Oh joy.
2015-11-08 20:46:41 +00:00
Jonathan Li
49ff324882
Merge pull request #955 from turtleli/replace-comptr-h
...
gsdx|spu2-x: Use atlcomcli.h for CComPtr definition
2015-11-08 13:27:28 +00:00
Gregory Hainaut
4ef0572ceb
gsdx-ogl: disable copy constructor
...
'class GSVertexBufferStateOGL' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory.
2015-11-06 23:01:59 +01:00
Gregory Hainaut
3e4c3353ce
gsdx-ogl: missing break
2015-11-06 23:01:58 +01:00
Gregory Hainaut
9f1649ae57
gsdx: use a type in sizeof
...
(warning) Suspicious usage of 'sizeof' with a numeric constant as parameter.
2015-11-06 23:01:58 +01:00
Gregory Hainaut
7c6d2361af
gsdx: use scalar delete
...
(error) Mismatching allocation and deallocation: data
2015-11-06 23:01:58 +01:00
Gregory Hainaut
f3394b16b8
gsdx: use standard quote character
...
Nicer with tool that support ANSII text (cppcheck)
2015-11-06 23:01:58 +01:00
Jonathan Li
0eb771c2a6
gsdx|spu2-x: Use atlcomcli.h for CComPtr definition
...
VS2013/VS2015 community includes it, so everything will still compile
for everyone.
Also delete common/include/comptr.h.
2015-11-06 18:52:33 +00:00
Jonathan Li
4ab092d011
Merge pull request #911 from ssakash/gsdx_debug
...
Gsdx: Add Mipmap (Software mode) and preload data frame to GUI.
2015-11-06 13:01:49 +00:00
Akash
754a7eb7de
GSDX: Update toggle key messages
2015-11-06 01:47:53 +05:30
Akash
d866b5592e
GSDX: Add two new options to GUI.
...
The following patch adds Mipmap option (software mode exclusive) and Preload Data Frame (Hardware mode exclusive) to the GSDX plugin settings for debug purposes.
2015-11-06 01:47:44 +05:30
Gregory Hainaut
5ba41306ea
gsdx-tc: HasSharedBits uses PSM not address
...
Nice heap overflow. I'm surprised that it kinda worked.
2015-11-02 07:36:37 +01:00
Gregory Hainaut
59be6c8710
gsdx: protect some options to avoid buffer overflow
...
Keep TVShader/interlace/aspectratio in the legal range.
Avoid a crash if the user (aka me) edit the ini file with bad value.
2015-10-25 21:44:20 +01:00
Gregory Hainaut
b87cda94c5
Merge branch 'glsl-fix-tv-shaders' of git://github.com/turtleli/pcsx2 into turtleli-glsl-fix-tv-shaders
2015-10-25 21:23:39 +01:00
Gregory Hainaut
bba67fbd83
Merge pull request #912 from PCSX2/accurate-blending-issue-762
...
gsdx-ogl: PrimitiveOverlap requires real rectangle
2015-10-25 20:55:41 +01:00
Jonathan Li
1659d5974e
gsdx-ogl: Fix scanline, diagonal, triangular TV shaders
...
PSin.p is normalised, so integer conversions won't work. Use
gl_FragCoord instead.
2015-10-25 19:20:22 +00:00
Gregory Hainaut
50e6306331
Merge pull request #919 from ssakash/coverity_init
...
Coverity: Initialize class members
2015-10-25 20:08:46 +01:00
Gregory Hainaut
295f867118
gsdx: invalid alpha after an EE write
...
Typical wrong draw:
1/ draw in 32 bits
2/ draw in 24 bits
3/ Use alpha as a texure. (Must reuse the GPU data)
4/ Write alpha from EE
5/ Use alpha as a texure. (Must upload new data)
This commit fixes the step 5.
Fix #917 (Conflict - Desert Storm)
2015-10-24 16:23:50 +02:00
Gregory Hainaut
5cbd0cf42a
gsdx-debug: add more push/pop debug group on the init
2015-10-24 14:14:37 +02:00
Gregory Hainaut
9ba949c2d9
gsdx-debug: support correct logging on mesa
...
By default low severity message were disabled. (thanks to be open source)
2015-10-24 14:14:37 +02:00
Akash
c1f1646dab
GSDX: Initialize class members
...
CID 146973 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)2. uninit_member: Non-static class member overflow is not initialized in this constructor nor in any functions that it calls.
2999}
2015-10-23 01:35:15 +05:30
Gregory Hainaut
87001326f6
gsdx: remove 4Y-old unused code
...
It was never used.
2015-10-22 19:51:03 +02:00
Gregory Hainaut
a8968257db
glsl: keep fract in [0;1] range
...
Shin Megami Tensei Lucifers seems to generate infinites values.
I suspect that DX always clamp fract output.
Finally fix #782 !
2015-10-22 18:36:45 +02:00
Gregory Hainaut
c0d0e2e89d
gsdx-ogl: PrimitiveOverlap requires real rectangle
...
runion/rempty/rinter requires x < z and y < w
Help issue #762 (accurate blending issue)
If you want to shine, please put better GSVector code (AVX512 is 2 instruction :p)
2015-10-22 12:34:50 +02:00
Gregory Hainaut
92553add8e
gsdx-ogl: accurate date regression. Bad interaction between depth & DATE
...
In the DATE42 algo, first pass must find the primitive that write the
bad alpha value. If depth test is fail, alpha value won't be written therefore
you mustn't keep the primitive id.
In theory to ensure 100% correctness, depth would need to be fully executed
(currently depth write is disabled). However it requires to copy the depth buffer.
It is likely bad for the perf.
Issue reported on DBZInfWorld
2015-10-22 12:31:51 +02:00
Gregory Hainaut
6561fbc831
gsdx-ogl: only enable aniso when sampling from the HW texture unit
...
Potentially help issue #884
2015-10-22 12:21:43 +02:00
Gregory Hainaut
826319ce34
gsdx-ogl: check null pointer
...
CID 151735 (#1 of 1): Dereference after null check (FORWARD_NULL)
61. var_deref_model: Passing null pointer rt to CopyRectConv, which dereferences it
2015-10-21 20:10:16 +02:00
Gregory Hainaut
395b4c25f3
Merge pull request #899 from ssakash/gsdx_nullcheck
...
gsdx: use old size of target if ds and rt is null
2015-10-18 19:25:39 +02:00
Gregory Hainaut
d5e0899955
oups collision with ref commit
2015-10-18 11:19:39 +02:00
Gregory Hainaut
f99882c61c
gsdx-ogl: keep gl_ActiveTexture & gl_BlendColor (fix MS compilation)
...
It seems openGL ABI isn't exactly the same between Windows and my PC.
2015-10-18 11:18:19 +02:00
refractionpcsx2
179a4cead5
GSdx: Fix compilation
2015-10-18 02:01:56 +01:00
Akash
294b8d3c6e
gsdx: use old size of target if ds and rt is null
...
CID 146843 (#1 of 1): Dereference after null check (FORWARD_NULL)6. var_deref_model: Passing null pointer ds to GetSize, which dereferences it.
2015-10-17 22:47:44 +05:30
Gregory Hainaut
0958b9db8e
gsdx-ogl: use the standard openGL name
...
Function pointer was mangled to avoid any collision. Nowadays all symbols
are hidden so no risk of collision.
Syntax is nicer beside it would allow to put back GLES3.2. I think it
supports most of the used extension.
glActiveTexture & glBlendColor are provided without symbol query.
2015-10-17 17:05:15 +02:00
Gregory Hainaut
1c8f8a00b8
Merge pull request #894 from ssakash/coverity_fix
...
Coverity: Prevent NULL dereferences and other stuffs.
2015-10-17 16:00:28 +02:00
Akash
fedd07e4a8
gsdx: prevent a potential division by zero
...
CID 146834 (#2-1 of 2): Division or modulo by zero (DIVIDE_BY_ZERO)9. divide_by_zero: In expression tpf * 10000ULL / ttpf, division by expression ttpf which may be zero has undefined behavior.
2015-10-17 11:26:11 +05:30