| Age | Commit message (Collapse) | Author |
|
Zero-initialization zeroes out all members and padding bits, so this is
safe to do. While we're at it, also add static assertions that enforce
the necessary requirements of a UID type explicitly within the ShaderUid
class.
This way, we can remove several memset calls around the shader
generation code that makes sure the underlying UID data is zeroed out.
Now our ShaderUid class enforces this for us, so we don't need to care about
it at the usage sites.
|
|
Removes the clipPos varying unless slow-depth is used, and the
clipDistance varyings if geometry shaders are not used.
|
|
Makes for more strongly-typed identifiers (and doesn't pollute
surrounding namespaces)
|
|
|
|
Also moves logic for primitive handling to VideoCommon.
|
|
|
|
Also moves the host config checks to common.
|
|
|
|
|
|
From what I can tell, the emulated GPU places (0,0) at the lower left of
the image, and we were generating texture coordinates so that (0,0) was
at the upper-left in the expansion geometry shader, causing textures
used by point sprites to be flipped vertically.
Fixes the upside-down A button in Mario Golf.
|
|
|
|
Commit 4969415 modified calls to GetInterpolationQualifier, but mistakenly changed the order of some boolean parameters: GetInterpolationQualifier(true, false) was changed to GetInterpolationQualifier(…, false, true).
Should fix #9783.
|
|
|
|
Seems that vec[eye] will select vec.x no matter what the value of eye is.
|
|
This also shifts the SSBO index from index 3 to index 0.
|
|
|
|
|
|
|
|
Allows for forward declarations in most places, which prevents dumping
unrelated VideoCommon.h contents directly into headers.
|
|
|
|
Without UID checking, it's basically a no-op that disables shader cache
and stores the shader source code (without ever reading it back).
|
|
|
|
|
|
|
|
Bug Fix: Previously vertex shaders and geometery shaders didn't track
antialaising state in their UIDs, which could cause AA bugs
on directx.
|
|
|
|
Drivers that don't support GL_ARB_shading_language_420pack require that
the storage qualifier be specified even when inside an interface block.
AMD's driver throws a compile error when "centroid in/out" is used within
an interface block.
Our previous behavior was to include the storage qualifier regardless, but
this wasn't working on AMD, therefore we should check for the presence of
the extension and include based on this, instead.
|
|
OS X's shader compiler has a bug with interface blocks where interface block members don't properly inherit the layout qualifier from the interface
block.
Work around this limitation by explicitly stating the layout qualifier on both the interface block and every single member inside of that block.
|
|
Also remedies places where the video backends and core rely on things
being indirectly included.
|
|
buffer to ShaderCode
This fixes the crashes occuring at startup with a non-empty shader cache.
Because LinearDiskCache reads/writes to the storage of ShaderUid, ShaderUid must be trivially copyable.
Additionally, adds a static assert to LinearDiskCache to ensure this doesn't happen in the future.
The initialization of ShaderUid data has been moved to the code generation functions, so the above condition holds true.
|
|
Static by itself is sufficient
|
|
|
|
rather than passing in non-const references
|
|
|
|
This reverts commit 4cbaddb7ad1e84946a6fb1af1d853af15be90615.
|
|
There are very rare conditions in which xfmem can actually desync from bpmem.
|
|
|
|
|
|
|
|
the angle.
|
|
Previously it was packed into spare slots in clippos.xy and normal.w,
but it's ugly and more importantly it's causing bugs.
This was discovered during the debugging of a zfreeze branch, which
expected clippos.xy to be xy position coordinates in clipspace (as
the name suggested).
Turns out the stereoscopy shader had also run into this trap, modifying
clippos.x (introducing errors with per-pixel lighting).
This commit has been moved outside of the zfreeze PR for fast merging.
|
|
instead.
|
|
VideoCommon: Handle wireframe mode in the geometry shader.
|
|
GL_ARB_shading_language_420pack is supported.
Some driver developers interpreted "can" as "must" in the OpenGL specs. (I'm looking at you AMD)
|
|
|
|
|
|
|
|
Fixes shaders for GPUs that don't support GL_ARB_shading_language_420pack.
|
|
|
|
conflicts.
|