Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | GPU: Remove the assert that required the CODE_ADDRESS to be 0. | Subv | 2018-07-24 | 1 | -8/+0 |
| | | | | Games usually just leave it at 0 but nouveau sets it to something else. This already works fine, the assert is useless. | ||||
* | maxwell_3d: Remove unused variable within GetStageTextures() | Lioncash | 2018-07-20 | 1 | -2/+0 |
| | |||||
* | gl_rasterizer: Fix check for if a shader stage is enabled. | bunnei | 2018-07-13 | 1 | -21/+0 |
| | |||||
* | Merge pull request #609 from Subv/clear_buffers | bunnei | 2018-07-04 | 1 | -0/+12 |
|\ | | | | | GPU: Implemented the CLEAR_BUFFERS register. | ||||
| * | GPU: Support clears that don't clear the color buffer. | Subv | 2018-07-03 | 1 | -2/+3 |
| | | |||||
| * | GPU: Bind and clear the render target when the CLEAR_BUFFERS register is written to. | Subv | 2018-07-03 | 1 | -0/+11 |
| | | |||||
* | | Update clang format | James Rowe | 2018-07-03 | 1 | -2/+2 |
| | | |||||
* | | Rename logging macro back to LOG_* | James Rowe | 2018-07-03 | 1 | -1/+1 |
|/ | |||||
* | Build: Fixed some MSVC warnings in various parts of the code. | Subv | 2018-06-20 | 1 | -2/+3 |
| | |||||
* | GPU: Implement sampling multiple textures in the generated glsl shaders. | Subv | 2018-06-06 | 1 | -0/+34 |
| | | | | | | All tested games that use a single texture show no regression. Only Texture2D textures are supported right now, each shader gets its own "tex_fs/vs/gs" sampler array to maintain independent textures between shader stages, the textures themselves are reused if possible. | ||||
* | GPU: Partial implementation of long GPU queries. | Subv | 2018-06-04 | 1 | -9/+24 |
| | | | | | | | | Long queries write a 128-bit result value to memory, which consists of a 64 bit query value and a 64 bit timestamp. In this implementation, only select=Zero of the Crop unit is implemented, this writes the query sequence as a 64 bit value, and a 0u64 value for the timestamp, since we emulate an infinitely fast GPU. This specific type was hwtested, but more rigorous tests should be performed in the future for the other types. | ||||
* | maxwell_3d: Reset vertex counts after drawing. | bunnei | 2018-04-29 | 1 | -0/+10 |
| | |||||
* | general: Convert assertion macros over to be fmt-compatible | Lioncash | 2018-04-27 | 1 | -2/+2 |
| | |||||
* | GPU: Reduce the number of registers of Maxwell3D to 0xE00. | Subv | 2018-04-25 | 1 | -3/+3 |
| | | | | The rest are just macro shim registers. | ||||
* | GPU: Move the Maxwell3D macro uploading code to the inside of the Maxwell3D processor. | Subv | 2018-04-25 | 1 | -4/+10 |
| | | | | It doesn't belong in the PFIFO handler. | ||||
* | video-core: Move logging macros over to new fmt-capable ones | Lioncash | 2018-04-25 | 1 | -2/+2 |
| | |||||
* | memory_manager: Make GpuToCpuAddress return an optional. | bunnei | 2018-04-24 | 1 | -10/+11 |
| | |||||
* | memory_manager: Use GPUVAdddr, not PAddr, for GPU addresses. | bunnei | 2018-04-24 | 1 | -6/+5 |
| | |||||
* | GPU: Added asserts to our code for handling the QUERY_GET GPU command. | Subv | 2018-04-24 | 1 | -1/+26 |
| | | | | | This is based on research from nouveau. Many things are currently unknown and will require hwtests in the future. This commit also stubs QueryMode::Write2 to do the same as Write. Nouveau code treats them interchangeably, it is currently unknown what the difference is. | ||||
* | GPU: Pitch textures are now supported, don't assert when encountering them. | Subv | 2018-04-18 | 1 | -2/+3 |
| | |||||
* | Merge pull request #346 from bunnei/misc-gpu-improvements | bunnei | 2018-04-18 | 1 | -1/+2 |
|\ | | | | | Misc gpu improvements | ||||
| * | maxwell3d: Allow Texture2DNoMipmap as Texture2D. | bunnei | 2018-04-18 | 1 | -1/+2 |
| | | |||||
* | | renderer_opengl: Implement BlendEquation and BlendFunc. | bunnei | 2018-04-18 | 1 | -3/+1 |
|/ | |||||
* | gl_rasterizer: Implement indexed vertex mode. | bunnei | 2018-04-17 | 1 | -1/+3 |
| | |||||
* | GPU: Added a function to determine whether a shader stage is enabled or not. | Subv | 2018-04-15 | 1 | -0/+21 |
| | |||||
* | GPU: Assert when finding a texture with a format type other than UNORM. | Subv | 2018-04-07 | 1 | -0/+2 |
| | |||||
* | GPU: Use the MacroInterpreter class to execute the GPU macros instead of HLEing them. | Subv | 2018-04-01 | 1 | -100/+8 |
| | |||||
* | GPU: Implemented a gpu macro interpreter. | Subv | 2018-04-01 | 1 | -0/+5 |
| | | | | | | The Ryujinx macro interpreter and envydis were used as reference. Macros are programs that are uploaded by the games during boot and can later be called by writing to their method id in a GPU command buffer. | ||||
* | Maxwell3D: Call AccelerateDrawBatch on DrawArrays. | bunnei | 2018-03-27 | 1 | -1/+8 |
| | |||||
* | GPU: Load the sampler info (TSC) when retrieving active textures. | Subv | 2018-03-26 | 1 | -20/+60 |
| | |||||
* | GPU: Make the debug_context variable a member of the frontend instead of a global. | Subv | 2018-03-25 | 1 | -11/+13 |
| | |||||
* | GPU: Added a function to retrieve the active textures for a shader stage. | Subv | 2018-03-24 | 1 | -44/+49 |
| | | | | TODO: A shader may not use all of these textures at the same time, shader analysis should be performed to determine which textures are actually sampled. | ||||
* | GPU: Implement the Incoming/FinishedPrimitiveBatch debug breakpoints. | Subv | 2018-03-24 | 1 | -0/+7 |
| | |||||
* | GPU: Implement the MaxwellCommandLoaded/Processed debug breakpoints. | Subv | 2018-03-24 | 1 | -0/+10 |
| | |||||
* | GPU: Added a method to unswizzle a texture without decoding it. | Subv | 2018-03-24 | 1 | -1/+1 |
| | | | | Allow unswizzling of DXT1 textures. | ||||
* | GPU: Preliminary work for texture decoding. | Subv | 2018-03-24 | 1 | -0/+45 |
| | |||||
* | Clang Fixes | N00byKing | 2018-03-19 | 1 | -1/+2 |
| | |||||
* | Clean Warnings (?) | N00byKing | 2018-03-19 | 1 | -1/+1 |
| | |||||
* | GPU: Implement macro 0xE1A BindTextureInfoBuffer in HLE. | Subv | 2018-03-19 | 1 | -0/+18 |
| | | | | This macro simply sets the current CB_ADDRESS to the texture buffer address for the input shader stage. | ||||
* | GPU: Implement the BindStorageBuffer macro method in HLE. | Subv | 2018-03-18 | 1 | -0/+21 |
| | | | | | | This macro binds the SSBO Info Buffer as the current ConstBuffer. This buffer is usually bound to c0 during shader execution. Games seem to use this macro instead of directly writing the address for some reason. | ||||
* | GPU: Handle writes to the CB_DATA method. | Subv | 2018-03-18 | 1 | -0/+36 |
| | | | | | | Writing to this method will cause the written value to be stored in the currently-set ConstBuffer plus CB_POS. This method is usually used to upload uniforms or other shader-visible data. | ||||
* | GPU: Store uploaded GPU macros and keep track of the number of method parameters. | Subv | 2018-03-18 | 1 | -7/+16 |
| | |||||
* | GPU: Macros are specific to the Maxwell3D engine, so handle them internally. | Subv | 2018-03-18 | 1 | -5/+36 |
| | |||||
* | GPU: Renamed ShaderType to ShaderStage as that is less confusing. | Subv | 2018-03-18 | 1 | -12/+12 |
| | |||||
* | GPU: Store shader constbuffer bindings in the GPU state. | Subv | 2018-03-18 | 1 | -2/+36 |
| | |||||
* | GPU: Make the SetShader macro call do the same as the real macro's code. | Subv | 2018-03-18 | 1 | -1/+19 |
| | | | | | | It'll now set the CB_SIZE, CB_ADDRESS and CB_BIND registers when it's called. Presumably this SetShader function is binding the constant shader uniforms to buffer 1 (c1[]). | ||||
* | GPU: Corrected the parameter documentation for the SetShader macro call. | Subv | 2018-03-17 | 1 | -5/+6 |
| | | | | | | Register 0xE24 is actually a macro that sets some shader parameters in the register structure. Macros are uploaded to the GPU at startup and have their own ISA, we'll probably write an interpreter for this in the future. | ||||
* | GPU: Handle the SetShader method call (0xE24) and store the shader config. | Subv | 2018-03-17 | 1 | -2/+22 |
| | |||||
* | Merge pull request #241 from Subv/gpu_method_call | bunnei | 2018-03-17 | 1 | -0/+17 |
|\ | | | | | GPU: Process command mode 5 (IncreaseOnce) differently from other commands | ||||
| * | GPU: Process command mode 5 (IncreaseOnce) differently from other commands. | Subv | 2018-03-17 | 1 | -0/+17 |
| | | | | | | | | | | | | Accumulate all arguments before calling the desired method. Note: Maybe we should do the same for the NonIncreasing mode? | ||||
* | | GPU: Assert that we get a 0 CODE_ADDRESS register in the 3D engine. | Subv | 2018-03-17 | 1 | -0/+8 |
|/ | | | | Shader address calculation depends on this value to some extent, we do not currently know what it being 0 entails. | ||||
* | GPU: Intercept writes to the VERTEX_END_GL register. | Subv | 2018-03-05 | 1 | -0/+9 |
| | | | | | | This is the register that gets written after a game calls DrawArrays(). We should collect all GPU state and draw using our graphics API here. | ||||
* | GPU: Partially implemented the QUERY_* registers in the Maxwell3D engine. | Subv | 2018-02-12 | 1 | -1/+39 |
| | | | | Only QueryMode::Write is supported at the moment. | ||||
* | Make a GPU class in VideoCore to contain the GPU state. | Subv | 2018-02-12 | 1 | -3/+1 |
| | | | | Also moved the GPU MemoryManager class to video_core since it makes more sense for it to be there. | ||||
* | GPU: Added a command processor to decode the GPU pushbuffers and forward the commands to their respective engines. | Subv | 2018-02-12 | 1 | -0/+15 |