| Age | Commit message (Collapse) | Author |
|
Fix error message when D3D11 HResults fail.
|
|
Prevents showing the wrong function name by putting a space between the function name and "Failed".
Also fixes the capitalization.
|
|
|
|
Removes ZeroFrog's "optimized" memcpy and memcmp functions.
|
|
v2: Don't use std::to_string as this function is broken on android.
|
|
|
|
|
|
|
|
|
|
Opcode decoding: handle missing opcodes 0x88 etc.
|
|
These were only compiled in on Windows and x86_32.
They provided "optimized" copies and compares based on blocksizes for the AMD Athlon and Duron CPU families.
The code was taken from something that AMD provides with a as-is license.
Just get rid of this crap.
|
|
Video backends: fix rounding in lighting computation.
|
|
It's not normally used, so if it shows up, it could indicate a CPU emulation
bug.
|
|
SW backend: use VideoCommon XFRegisters struct.
|
|
|
|
There isn't really any reason to keep them separate.
|
|
Removes the duplicate swxfregs global variable/struct from the software
backend in favor of the ones from VideoCommon.
|
|
Also fixes TEVCOLORARG_HALF.
Values verified to match hardwarere.
|
|
OGL/VertexManager: Remove unused variable.
|
|
Opcode decoding: 0xC0 isn't a valid command.
|
|
|
|
For whatever reason, the hardware doesn't do a full divide by 255, but
instead uses an approximation with shifting, similar to the way it is done
in TEV.
|
|
builds.
For quite a while this has been causing integer division to generate a warning as error, blocking shader compiling. This means probably no one has even been running D3D in debug builds...
I tried disabling the warning with a #pragma, but it doesn't seem to apply when this flag is used.
|
|
Hardware testing shows that they do the same thing as the 0x80 family of
opcodes: they draw quads.
|
|
Fix our opcode decoders to handle this appropriately.
|
|
Shader cleanup
|
|
(While I'm here, also mark some functions static.)
|
|
|
|
This makes it so we don't need to do some dumb casting from float to integer in our shaders.
Only tested in OpenGL, needs to be tested in D3D.
|
|
We need to pull in function pointers for OpenGL 3.0 in order to use glAttribIPointer.
This isn't too big of an issue, and this code will be gone in the future when we change over to libepoxy.
Just need to push code upstream to libepoxy to support Android with GLES and GL first.
|
|
D3D11: Use appropriate shader for PEEK_Z.
|
|
|
|
Fix "warning: unused variable 'skipFrames'"
|
|
|
|
This matches how ARM handles their naming in their drivers for different models.
Really it's that way because both Mali-T6xx and Mali-T7xx fall under Midgard.
While everything else (except Mali-55) fall under Utgard.
|
|
We need to explicitly round when converting colors from float to uint
because multiplying a normalized float by 255 might not result in a whole
number. (The exact result here may vary depending on your
drivers/hardware.)
Ideally, we shouldn't be using floating point here, but fixing that is a
much more complicated patch.
Fixes gxtest TEV tests using Intel HD 4000.
|
|
|
|
Formulas stolen from gxtest. (Not sure how "==" got turned into "!=", but
I'm pretty confident the patched version is correct.)
|
|
Add Mali driver version check and support of checking for Mali-T7xx
|
|
The header has no content, so it can can just be deleted.
|
|
|
|
Fixes a minor UI glitch where if you switch from Direct3D to OpenGL, the
OpenGL config page would appear to have an adapter choice available.
|
|
They are similar enough that they will share bugs with their drivers, so make them fall under the same Mali-Txxx umbrella of bug issues.
If there is ever a need in the future for having separate bugs depending on family, we can support that then.
|
|
This is the only way we can determine the video driver version with mali.
Really it's a good thing that they only push driver updates once every two years, makes it easy to determine what driver anybody is running.
|
|
No point to keeping around variables which are always "true".
|
|
CreateInputLayout requires a shader as an input, but it only cares about
the signature; we don't need to recompute it for different shaders with
the same inputs.
|
|
Software backend: Delete forked PixelEngine.
|
|
|
|
Add initial support for GLSL ES 3.10.
|
|
GLSL ES 3.10 adds implicit support for the binding layout qualifier that we use.
Changes our GLSL version enums to bit values so we can check for both ES versions easily.
|