RyuKen/Ryujinx.Graphics.Gpu/Engine
riperiperi 5d69d9103e
Texture/Buffer Memory Management Improvements (#1408)
* Initial implementation. Still pending better valid-overlap handling,
disposed pool, compressed format flush fix.

* Very messy backend resource cache.

* Oops

* Dispose -> Release

* Improve Release/Dispose.

* More rule refinement.

* View compatibility levels as an enum - you can always know if a view is only copy compatible.

* General cleanup.

Use locking on the resource cache, as it is likely to be used by other threads in future.

* Rename resource cache to resource pool.

* Address some of the smaller nits.

* Fix regression with MK8 lens flare

Texture flushes done the old way should trigger memory tracking.

* Use TextureCreateInfo as a key.

It now implements IEquatable and generates a hashcode based on width/height.

* Fix size change for compressed+non-compressed view combos.

Before, this could set either the compressed or non compressed texture with a size with the wrong size, depending on which texture had its size changed. This caused exceptions when flushing the texture.

Now it correctly takes the block size into account, assuming that these textures are only related because a pixel in the non-compressed texture represents a block in the compressed one.

* Implement JD's suggestion for HashCode Combine

Co-authored-by: jduncanator <1518948+jduncanator@users.noreply.github.com>

* Address feedback

* Address feedback.

Co-authored-by: jduncanator <1518948+jduncanator@users.noreply.github.com>
2020-09-10 16:44:04 -03:00
..
GPFifo Silence several build warnings (#1428) 2020-08-06 23:40:41 +02:00
MME Fix MacroJit SubtractWithBorrow Alu Reg Operation. (#1473) 2020-08-13 12:08:48 -03:00
Compute.cs Remove GPU MemoryAccessor (#1423) 2020-07-25 16:39:45 +10:00
ComputeQmd.cs Use correct shader local memory size instead of a hardcoded size (#914) 2020-02-02 14:25:52 +11:00
Inline2Memory.cs Support inline index buffer data (#1351) 2020-07-04 00:41:27 +02:00
MethodClear.cs Implement Zero-Configuration Resolution Scaling (#1365) 2020-07-07 04:41:07 +02:00
MethodConditionalRendering.cs Improved Logger (#1292) 2020-08-04 01:32:53 +02:00
MethodCopyBuffer.cs Fix buffer to 3D texture copy (#1354) 2020-07-04 01:37:36 +02:00
MethodCopyTexture.cs Fix: Issue #1475 Texture Compatibility Check methods need to be centralized (#1482) 2020-08-31 21:06:27 -03:00
MethodDraw.cs Support inline index buffer data (#1351) 2020-07-04 00:41:27 +02:00
MethodFirmware.cs Ignore exit flag on branch delay slot (#899) 2020-01-22 02:11:43 +01:00
MethodIncrementSyncpoint.cs Implement Counter Queue and Partial Host Conditional Rendering (#1167) 2020-05-04 12:24:59 +10:00
MethodReport.cs Remove GPU MemoryAccessor (#1423) 2020-07-25 16:39:45 +10:00
MethodResetCounter.cs Fix some spelling mistakes 2020-01-09 02:13:00 +01:00
Methods.cs Texture/Buffer Memory Management Improvements (#1408) 2020-09-10 16:44:04 -03:00
MethodUniformBufferBind.cs Add XML documentation to Ryujinx.Graphics.Gpu.Engine 2020-01-09 02:13:00 +01:00
MethodUniformBufferUpdate.cs Remove GPU MemoryAccessor (#1423) 2020-07-25 16:39:45 +10:00