summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
AgeCommit message (Collapse)Author
2021-12-23Merge pull request #10279 from Pokechu22/intensity-alphaJosJuice
TextureConverterShaderGen: Set alpha to 1 on intensity formats if EFB lacks alpha
2021-12-22Merge pull request #10215 from OatmealDome/shader-logic-opsJMC47
VideoCommon: Support shader logic ops on Metal (Apple GPUs) and OpenGL ES
2021-12-20Fifo analyzer: Rename mipmap filter to half scale for EFB copiesPokechu22
The field itself is named half_scale, and it can be used for things unrelated to mipmaps, so reflecting that name in the fifo analyzer helps.
2021-12-20TextureConverterShaderGen: Set alpha to 1 on intensity formats if EFB lacks ↵Pokechu22
alpha We were already doing this for non-intensity formats, but it seems like the same applies to intensity formats.
2021-12-18TextureCacheBase: Re-wrap GetTexture commentPokechu22
2021-12-18BPMemory: Correct spelling of MaxAnisoPokechu22
2021-12-18Eliminate VarType for ComponentFormatPokechu22
2021-12-18VertexLoader_Color: Use Common::swap24Pokechu22
2021-12-18Fifo analyzer: Display equations for color/alpha combinersPokechu22
2021-12-18OpcodeDecoding: Make s_is_fifo_error_seen staticPokechu22
2021-12-18VideoCommon: Move VertexLoaderManager logic out of CPStatePokechu22
2021-12-18Remove DataReader from LoadXFRegPokechu22
2021-12-18Refactor OpcodeDecoding and FIFO analyzer to use callbacksPokechu22
2021-12-18Create and use CPArray enum classPokechu22
2021-12-18Convert OpcodeDecoder::Opcode and OpcodeDecoder::Primitive to enum classPokechu22
2021-12-18GeometryShaderGen: Convert to EnumMapPokechu22
2021-12-18UberShaderPixel: Convert to EnumMapPokechu22
2021-12-18PixelShaderGen: Convert to EnumMapPokechu22
2021-12-18VertexLoader: Convert to EnumMapPokechu22
2021-12-18ShaderGenCommon: Add WriteSwitchPokechu22
2021-12-10Treewide: Adjust order of includesPokechu22
2021-12-06UberShaderPixel: Add shader logic ops support on OpenGL ESOatmealDome
2021-12-06PixelShaderGen: Add shader logic ops support on OpenGL ESOatmealDome
To do this, I had to decouple framebuffer fetch from shader blending. We need to be able to access framebuffer fetch input when using shader logic ops.
2021-12-06UberShaderPixel: Add shader logic ops support on MetalOatmealDome
2021-12-06PixelShaderGen: Add shader logic ops support on MetalOatmealDome
2021-12-06ShaderCache: Don't turn on logic ops approximation if framebuffer fetch is ↵OatmealDome
supported
2021-12-06PixelShaderGen: Add logic ops to pixel_shader_uid_dataOatmealDome
2021-12-03Merge pull request #10256 from malleoz/show-rerecord-countScott Mansell
Renderbase: Show rerecord count
2021-12-02Merge pull request #10244 from phire/ban-timetravelJMC47
Delay singlecore gpu interrupts; Fixes Bomberman Jetters in single core mode.
2021-11-30Add Rerecord Count displaysowens99
Simply shows Movie::s_rerecords in the ImGui Movie window
2021-11-24ConstantManager: Add logic ops to PixelShaderConstantsOatmealDome
2021-11-25Delay singlecore gpu interruptsScott Mansell
Fixes Bomberman Jetters in single core mode. When single core mode pauses the CPU to execute the GPU FIFO it greedily executes the whole thing. Before this commit, Finish and Token interrupts would happen instantly, not even taking into account how long the current FIFO window has taken to execute. The interrupts would be effectively backdated to the start of this execution window. This commit does two things: It pipes the current FIFO window execution time though to the interrupt scheduling and it enforces a minimum delay of 500 cycles before an interrupt will be fired.
2021-11-23Merge pull request #10143 from Pokechu22/png-compression-levelLéo Lam
Add option for setting the PNG zlib compression level
2021-11-22Trust MacOS not to crash during shader pre-compilationunknown
2021-11-22VideoCommon: Gate Multi-Threaded Shader Pre-Compilation behind a bug entryDevJPM
2021-11-20Fix CPU Core Count detection and Enable Parallel Shader CompilationDevJPM
This does this following things: - Default to the runtime automatic number of threads for pre-compiling shaders - Adds a distinct automatic thread count computation for pre-compilation (which has less other things going on and should scale better beyond 4 cores) - Removes the unused logical_core_count field from the CPU detection - Changes the semantics of num_cores from maximaum addressable number of cores to actually available CPU cores (which is also how it was actually used) - Updates the computation of the HTT flag now that AMD no longer lies about it for its Zen processors - Background shader compilation is *not* enabled by default
2021-11-18Merge pull request #10222 from phire/fix-copy-filter-clampingJMC47
Fix copy filter clamping
2021-11-18Add option for setting the PNG zlib compression levelPokechu22
2021-11-17VideoCommon: Skip textureQueryLevels if it doesn't existPokechu22
2021-11-17VideoCommon: Handle custom texture sizes correctlyPokechu22
Specifically, when using Manual Texture Sampling, if textures sizes don't match the size the game specifies, things previously broke. That can happen with custom textures, and also with scaled EFB copies at non-native IRs. It breaks most obviously by not scaling the texture coordinates (so only part of the texture shows up), but the hardware wrapping functionality also assumes texture sizes are a power of 2 (or else it will behave weirdly in a way that matches how hardware behaves weirdly). The fix is to provide alternative texture wrapping logic when custom texture sizes are possible.
2021-11-17VideoCommon: Add option to use old behavior (Fast Texture Sampling)Pokechu22
Co-authored-by: JosJuice <josjuice@gmail.com>
2021-11-17VideoCommon: Implement diagonal LODPokechu22
Note that both GLSL and HLSL provide a fwidth (fragment width) function defined as `fwidth(p) = abs(dFdx(p)) + abs(dFdy(p))`. However, it's easy enough to implement this ourselves (and it makes the code a bit more obvious).
2021-11-17VideoCommon: Use coarse derivatives for Manual Texture Sampling if possiblePokechu22
2021-11-17VideoCommon: Manually handle texture wrapping and samplingPokechu22
2021-11-17VideoCommon: Expose SamplerState to shadersPokechu22
The benefit to exposing this over the raw BP state is that adjustments Dolphin makes, such as LOD biases from arbitrary mipmap detection, will work properly.
2021-11-17VideoCommon: Provide raw texdims to shadersPokechu22
2021-11-17RenderState: Use operator== for operator!= and adjust constructorsPokechu22
2021-11-17Eliminate SamplerCommonPokechu22
2021-11-17Eliminate SamplerCommon::AreBpTexMode0MipmapsEnabledPokechu22
This was added in 0b9a72a62d38481ff08f742b2318d07f29ff5dff but became irrelevant in 70f9fc4e7526fc9cfc008a43cd33229f62be99b6 as the check is now self-explanatory due to a rejiggering of the bitfields.
2021-11-17VideoCommon: Add signed version of BitfieldExtractPokechu22