pcsx2/plugins/GSdx
Akash 8fe8cad8f9 GSdx-D3D11: Avoid undefined behavior in swapchain
PCSX2 sends a negative value (-1) to GSdx when adaptive mode is
specified for Vsync, this mode is exclusive to OpenGL at the moment
and is unimplemented on the D3D11 renderer. Also the present function
of swapchain only accepts values from 0 to 4 as parameter, hence
passing negative values to the function is undefined behavior.

So let's fallback to standard synchronization method on D3D11 when
PCSX2 requests for adaptive mode.
2017-08-25 22:40:42 +01:00
..
PSX gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
docs gsdx: Add some comment on GSTextureCache + schematics 2014-11-08 21:30:14 +01:00
res glsl: reduce geometry shader complexity 2017-07-12 22:04:03 +02:00
vsprops windows: Link GSdx to liblzma (xz) 2017-06-03 14:52:01 +02:00
xbyak gsdx: cpu detection take 3! Don't use 64 bits type in Xbyak::Cpu 2017-04-01 11:14:18 +02:00
CMakeLists.txt cmake: blacklist GCC 7.0 and GCC 7.1 (based on a small testcase) 2017-06-29 14:51:50 +02:00
GLLoader.cpp GSdx-ogl: Printing console messages v2 (#1954) 2017-07-02 13:56:45 +02:00
GLLoader.h gsdx: only print once OpenGL status message 2017-05-11 22:35:31 +02:00
GLState.cpp gsdx ogl: use an invalid value for stencil state 2016-10-14 19:01:18 +02:00
GLState.h gsdx ogl: only print an error when VRAM is low 2016-07-09 11:43:28 +02:00
GS.cpp gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GS.h GSdx: Implement SYNCV register bitfields 2017-05-24 13:44:52 +02:00
GSAlignedClass.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSAlignedClass.h gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSBlock.cpp gsdx: Defer vector initialisation to GS/GPUinit 2016-07-27 23:34:14 +01:00
GSBlock.h gsdx: Defer vector initialisation to GS/GPUinit 2016-07-27 23:34:14 +01:00
GSCapture.cpp gsdx:windows: Fix deprecated ATL attributes warning 2017-01-13 23:52:25 +00:00
GSCapture.h gsdx: Fix minor user visible typos 2017-01-13 23:52:02 +00:00
GSCaptureDlg.cpp gsdx:windows: Change m_colorspace to INT_PTR 2016-07-23 02:19:28 +01:00
GSCaptureDlg.h gsdx:windows: Change m_colorspace to INT_PTR 2016-07-23 02:19:28 +01:00
GSClut.cpp Whoops, over zealous with removing things. 2017-01-09 22:37:15 +00:00
GSClut.h gsdx sw: handle the invalidation of the palette when written by the GS 2016-09-03 00:21:56 +02:00
GSCodeBuffer.cpp gsdx: use prefix increment operator for non-primitive type 2016-08-12 23:11:26 +02:00
GSCodeBuffer.h gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSCrc.cpp GSdx: Add missing CRC for GT3 2017-08-16 17:35:32 +05:30
GSCrc.h GSdx: Remove Dirge Of Cerberus CRC hack 2017-04-21 11:13:27 +02:00
GSDevice.cpp gsdx: use shared_ptr instead of raw GSWnd* 2017-02-26 19:09:16 +01:00
GSDevice.h gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GSDevice9.cpp gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GSDevice9.h gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GSDevice11.cpp GSdx-D3D11: Avoid undefined behavior in swapchain 2017-08-25 22:40:42 +01:00
GSDevice11.h GSdx-D3D11: Avoid undefined behavior in swapchain 2017-08-25 22:40:42 +01:00
GSDeviceDX.cpp Revert "gsdx:windows: Fix Windows 7 compile" 2016-05-29 14:33:58 +01:00
GSDeviceDX.h GSdx: Unscale Point and Line Direct3D11 port 2017-04-01 11:16:25 +02:00
GSDeviceNull.cpp gsdx: use shared_ptr instead of raw GSWnd* 2017-02-26 19:09:16 +01:00
GSDeviceNull.h gsdx: use shared_ptr instead of raw GSWnd* 2017-02-26 19:09:16 +01:00
GSDeviceOGL.cpp glsl: extension must be declared first 2017-08-12 15:37:29 +02:00
GSDeviceOGL.h gsdx ogl: handle float integral coordinate for depth sampling 2017-07-12 22:03:47 +02:00
GSDialog.cpp GSdx: Improve robustness of ComboBoxInit() 2017-02-01 11:29:38 +00:00
GSDialog.h gsdx: Generic GSSetting 2016-01-18 23:59:27 +01:00
GSDirtyRect.cpp gsdx: use prefix increment operator for non-primitive type 2016-08-12 23:11:26 +02:00
GSDirtyRect.h gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSDrawScanline.cpp gsdx: use = default instead of trivial constructor/destructor 2017-05-13 10:38:35 +02:00
GSDrawScanline.h gsdx: use = default instead of trivial constructor/destructor 2017-05-13 10:38:35 +02:00
GSDrawScanlineCodeGenerator.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSDrawScanlineCodeGenerator.h gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSDrawScanlineCodeGenerator.x64.avx.cpp GSDX: Cleanup warnings on MSVC (#1694) 2016-12-21 23:21:07 +00:00
GSDrawScanlineCodeGenerator.x64.avx2.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSDrawScanlineCodeGenerator.x64.cpp gsdx sw JIT: dynamically select SSE41 at runtime even on SSE2 build (scanline) 2016-11-19 17:00:33 +01:00
GSDrawScanlineCodeGenerator.x86.avx.cpp GSDX: Cleanup warnings on MSVC (#1694) 2016-12-21 23:21:07 +00:00
GSDrawScanlineCodeGenerator.x86.avx2.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSDrawScanlineCodeGenerator.x86.cpp GSDX: Cleanup warnings on MSVC (#1694) 2016-12-21 23:21:07 +00:00
GSDrawingContext.cpp gsdx sw: help debug 2016-09-03 00:10:23 +02:00
GSDrawingContext.h gsdx debug: dump mipmap register could be useful now :) 2016-09-25 20:00:51 +02:00
GSDrawingEnvironment.h gsdx: use correct format in printf 2016-08-13 12:48:35 +02:00
GSDump.cpp GSdx: Cleanup warnings on MSVC 2017-06-29 16:48:50 +02:00
GSDump.h unix: Remove LZMA_SUPPORTED define 2017-06-03 14:52:01 +02:00
GSFunctionMap.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSFunctionMap.h gsdx: use range loop instead of for_each 2017-01-30 17:58:39 +01:00
GSHwHack.cpp GSdx: Adjust CRC for DBZ BT3 2017-07-26 20:19:44 +02:00
GSLinuxDialog.cpp gsdx linux: port to latest GTK3 API 2017-05-13 10:39:06 +02:00
GSLocalMemory.cpp gsdx sw: always enable the gs memory wrapping emulation 2017-04-21 10:53:05 +02:00
GSLocalMemory.h gsdx sw: always enable the gs memory wrapping emulation 2017-04-21 10:53:05 +02:00
GSLzma.cpp GSdx: Cleanup warnings on MSVC 2017-06-29 16:48:50 +02:00
GSLzma.h gsdx: Fix GS dump readback EOF handling 2017-06-03 14:52:01 +02:00
GSOsdManager.cpp CP update 2017-01-26 17:12:13 +01:00
GSOsdManager.h Revert "Update Copyright notices/disclaimers 2017" 2017-01-26 17:12:13 +01:00
GSPerfMon.cpp gsdx:freebsd: Fix compilation 2016-05-21 13:34:18 +01:00
GSPerfMon.h gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSPng.cpp gsdx: fix warning: variable ‘success’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered] 2017-01-11 18:23:34 +01:00
GSPng.h gsdx: Make GSJobQueue non-inheritable 2016-12-08 01:18:17 +00:00
GSRasterizer.cpp gsdx sw: rcp introduce bad rounding on the grandient 2017-03-05 10:53:07 +01:00
GSRasterizer.h gsdx: Make GSJobQueue non-inheritable 2016-12-08 01:18:17 +00:00
GSRenderer.cpp gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GSRenderer.h gsdx: store vsync state into an integer 2017-07-02 15:14:45 +02:00
GSRendererCL.cpp gsdx ogl: use load resource to load shader 2017-04-12 18:09:06 +02:00
GSRendererCL.h gsdx cl: fix various compilation issues and a couple of warnings 2017-01-24 19:38:31 +01:00
GSRendererCS.cpp gsdx: use vector of char as shader container 2017-04-12 18:09:06 +02:00
GSRendererCS.h GSdx: Direct3D port of HPO special/V2 2017-04-01 11:16:25 +02:00
GSRendererDX.cpp GSdx: Add merge sprite hack to GSdx hacks dialog 2017-04-01 11:16:25 +02:00
GSRendererDX.h GSdx: Unscale Point and Line Direct3D11 port 2017-04-01 11:16:25 +02:00
GSRendererDX9.cpp GSdx: Unscale Point and Line Direct3D11 port 2017-04-01 11:16:25 +02:00
GSRendererDX9.h GSdx: Unscale Point and Line Direct3D11 port 2017-04-01 11:16:25 +02:00
GSRendererDX11.cpp gsdx:d3d11: Fix incorrect geometry shader use 2017-06-13 01:11:45 +01:00
GSRendererDX11.h GSdx: Unscale Point and Line Direct3D11 port 2017-04-01 11:16:25 +02:00
GSRendererHW.cpp GSdx-HW: Move scaling code to separate subroutine 2017-06-04 17:10:25 +02:00
GSRendererHW.h gsdx: Fix variable initialisation issue 2017-06-05 01:12:41 +01:00
GSRendererNull.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSRendererNull.h gsdx tc: re-implement frame lookup 2016-04-04 21:30:37 +02:00
GSRendererOGL.cpp gsdx ogl: handle float integral coordinate for depth sampling 2017-07-12 22:03:47 +02:00
GSRendererOGL.h GSdx: Add merge sprite hack to GSdx hacks dialog 2017-04-01 11:16:25 +02:00
GSRendererSW.cpp psx|spu2x|gsdx: shift negative value is undefined in C standard 2017-04-30 21:20:23 +02:00
GSRendererSW.h gsdx sw: do const q division in ConvertVertexBuffer 2017-03-10 20:45:14 +01:00
GSScanlineEnvironment.h gsdx: defer GSScanlineConstantData init 2016-11-28 19:40:25 +01:00
GSSetting.cpp GSdx: Add merge sprite hack to GSdx hacks dialog 2017-04-01 11:16:25 +02:00
GSSetting.h gsdx ogl: use load resource to load shader 2017-04-12 18:09:06 +02:00
GSSettingsDlg.cpp GSdx-Windows: Fix Shadeboost text bug 2017-07-23 22:50:40 +01:00
GSSettingsDlg.h gsdx: split texture filtering option 2017-03-10 18:05:34 +01:00
GSSetupPrimCodeGenerator.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSSetupPrimCodeGenerator.h gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSSetupPrimCodeGenerator.x64.avx.cpp CP update 2017-01-26 17:12:13 +01:00
GSSetupPrimCodeGenerator.x64.avx2.cpp CP update 2017-01-26 17:12:13 +01:00
GSSetupPrimCodeGenerator.x64.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSSetupPrimCodeGenerator.x86.avx.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSSetupPrimCodeGenerator.x86.avx2.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSSetupPrimCodeGenerator.x86.cpp gsdx sw: port code to the new constant object 2016-11-24 23:03:26 +01:00
GSShaderOGL.cpp gsdx ogl: use load resource to load shader 2017-04-12 18:09:06 +02:00
GSShaderOGL.h gsdx ogl: use load resource to load shader 2017-04-12 18:09:06 +02:00
GSState.cpp GSdx: Rework framebuffer height calculation 2017-07-13 17:53:29 +02:00
GSState.h gsdx: remove the unused GSsetFrameLimit API 2017-07-02 15:09:47 +02:00
GSTables.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSTables.h gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSTexture.cpp gsdx: initialize members in constructor of objects 2015-09-23 09:46:53 +02:00
GSTexture.h gsdx mipmap:ogl: add capabilities to automatically generate mipmap layer 2016-10-13 20:16:38 +02:00
GSTexture9.cpp gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTexture9.h gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTexture11.cpp gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTexture11.h gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTextureCache.cpp GSdx: Memory Wrapping Windows port 2017-04-01 11:16:25 +02:00
GSTextureCache.h GSdx: Add an Enumeration for CRC Hack level 2017-02-21 10:54:03 +01:00
GSTextureCache9.cpp gsdx: Skip texture cache read if any dimension is 0 2016-11-09 22:39:53 +00:00
GSTextureCache9.h gsdx tc: implement a read function of Source texture 2016-04-04 21:29:31 +02:00
GSTextureCache11.cpp gsdx: Skip texture cache read if any dimension is 0 2016-11-09 22:39:53 +00:00
GSTextureCache11.h gsdx tc: implement a read function of Source texture 2016-04-04 21:29:31 +02:00
GSTextureCacheOGL.cpp gsdx: Skip texture cache read if any dimension is 0 2016-11-09 22:39:53 +00:00
GSTextureCacheOGL.h Merge pull request #1222 from PCSX2/gsdx-black-fmv 2016-04-21 09:25:36 +02:00
GSTextureCacheSW.cpp gsdx: use range loop instead of for_each 2017-01-30 17:58:39 +01:00
GSTextureCacheSW.h gsdx tc: use unsigned constant 2017-01-30 17:54:29 +01:00
GSTextureFX.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSTextureFX9.cpp gsdx: use vector of char as shader container 2017-04-12 18:09:06 +02:00
GSTextureFX11.cpp gsdx: use vector of char as shader container 2017-04-12 18:09:06 +02:00
GSTextureNull.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSTextureNull.h gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTextureOGL.cpp gsdx ogl: Deleted objects are automatically unbound/unmapped 2017-04-08 14:40:54 +02:00
GSTextureOGL.h gsdx mipmap:ogl: add capabilities to automatically generate mipmap layer 2016-10-13 20:16:38 +02:00
GSTextureSW.cpp gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSTextureSW.h gsdx mipmap: extend texture/cache to support a layer parameter 2016-10-13 20:16:38 +02:00
GSThread.h gsdx: add atomic for transaction scope object 2016-02-22 19:12:50 +01:00
GSThread_CXX11.h gsdx: Don't use atomic for exit variable 2017-01-07 13:54:45 +01:00
GSUniformBufferOGL.h gsdx ogl: Deleted objects are automatically unbound/unmapped 2017-04-08 14:40:54 +02:00
GSUtil.cpp gsdx: defer init of GSUtil global object 2017-05-21 14:39:22 +02:00
GSUtil.h gsdx: defer init of GSUtil global object 2017-05-21 14:39:22 +02:00
GSVector.cpp gsdx: Defer vector initialisation to GS/GPUinit 2016-07-27 23:34:14 +01:00
GSVector.h gsdx: split GSVector.h into smaller files 2017-03-19 13:50:13 +01:00
GSVector4.h gsdx: split GSVector.h into smaller files 2017-03-19 13:50:13 +01:00
GSVector4i.h gsdx: split GSVector.h into smaller files 2017-03-19 13:50:13 +01:00
GSVector8.h gsdx: split GSVector.h into smaller files 2017-03-19 13:50:13 +01:00
GSVector8i.h gsdx: split GSVector.h into smaller files 2017-03-19 13:50:13 +01:00
GSVertex.h gsdx: Add color component to OGL shaders 2016-10-14 18:13:20 +02:00
GSVertexArrayOGL.h gsdx ogl: Deleted objects are automatically unbound/unmapped 2017-04-08 14:40:54 +02:00
GSVertexHW.h gsdx: Use alignas instead of __aligned 2016-05-21 13:23:11 +01:00
GSVertexList.cpp gsdx: update the copyrigh address thank to sed 2012-09-09 18:16:11 +00:00
GSVertexList.h gsdx: use size_t for loop index when it used countof macro 2013-06-29 12:02:03 +00:00
GSVertexSW.cpp GSdx: one more try to fix vs2010 2013-06-10 20:43:03 +00:00
GSVertexSW.h gsdx: Use alignas instead of __aligned 2016-05-21 13:23:11 +01:00
GSVertexTrace.cpp gsdx ogl: improve ST/Q precision 2017-03-11 00:24:38 +01:00
GSVertexTrace.h gsdx ogl: improve ST/Q precision 2017-03-11 00:24:38 +01:00
GSWnd.cpp gsdx ogl: factorize SetVSync 2017-08-05 10:59:48 +02:00
GSWnd.h gsdx ogl: factorize SetVSync 2017-08-05 10:59:48 +02:00
GSWndDX.cpp gsdx: reduce the complexity on window creation 2017-02-26 19:09:16 +01:00
GSWndDX.h gsdx: s/_WINDOWS/_WIN32/ 2016-01-27 22:41:45 +00:00
GSWndEGL.cpp gsdx ogl: factorize SetVSync 2017-08-05 10:59:48 +02:00
GSWndEGL.h gsdx ogl: factorize SetVSync 2017-08-05 10:59:48 +02:00
GSWndOGL.cpp gsdx ogl: test adaptive/late vsync driver support 2017-08-05 11:00:39 +02:00
GSWndOGL.h gsdx ogl: test adaptive/late vsync driver support 2017-08-05 11:00:39 +02:00
GSWndWGL.cpp gsdx ogl: test adaptive/late vsync driver support 2017-08-05 11:00:39 +02:00
GSWndWGL.h gsdx ogl: test adaptive/late vsync driver support 2017-08-05 11:00:39 +02:00
GSdx.cpp GSDX: Remove redundant parenthesis from combobox text 2017-05-07 19:31:37 +01:00
GSdx.def gsdx: remove the unused GSsetFrameLimit API 2017-07-02 15:09:47 +02:00
GSdx.h gsdx: use vector of char as shader container 2017-04-12 18:09:06 +02:00
GSdx.rc GSDX: Add missing grayouts to Shadeboost options 2017-05-07 19:31:37 +01:00
GSdx.vcxproj gsdx: windows: Port xz dump readback 2017-06-03 14:52:01 +02:00
GSdx.vcxproj.filters gsdx: windows: Port xz dump readback 2017-06-03 14:52:01 +02:00
boost_spsc_queue.hpp gsdx: Avoid "using namespace std" in spsc queue 2017-03-21 00:10:35 +00:00
config.h GSdx: Remove useless check and add debug messages 2017-01-30 15:29:28 +01:00
linux_replay.cpp gsdx-replayer:linux: Fix strict-aliasing warnings 2016-12-12 18:14:38 +00:00
resource.h GSDX: Add missing grayouts to Shadeboost options 2017-05-07 19:31:37 +01:00
stdafx.cpp GSdx: Memory Wrapping Windows port 2017-04-01 11:16:25 +02:00
stdafx.h gsdx: Fix uptr size on Windows x64 build 2017-04-29 23:22:02 +01:00
targetver.h windows: Set _WIN32_WINNT to 0x0600 (Windows Vista) 2016-03-13 13:41:16 +00:00