mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	SWRasterizer: Implemented stencil ops 6 and 7.
IncrementWrap and DecrementWrap, verified with hwtests.
This commit is contained in:
		
							parent
							
								
									e43eb130d4
								
							
						
					
					
						commit
						7c1f84a92b
					
				
					 2 changed files with 14 additions and 6 deletions
				
			
		|  | @ -446,7 +446,9 @@ struct Regs { | ||||||
|         Replace        = 2, |         Replace        = 2, | ||||||
|         Increment      = 3, |         Increment      = 3, | ||||||
|         Decrement      = 4, |         Decrement      = 4, | ||||||
|         Invert    = 5 |         Invert         = 5, | ||||||
|  |         IncrementWrap  = 6, | ||||||
|  |         DecrementWrap  = 7 | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     struct { |     struct { | ||||||
|  |  | ||||||
|  | @ -237,6 +237,12 @@ static u8 PerformStencilAction(Regs::StencilAction action, u8 old_stencil, u8 re | ||||||
|     case Regs::StencilAction::Invert: |     case Regs::StencilAction::Invert: | ||||||
|         return ~old_stencil; |         return ~old_stencil; | ||||||
| 
 | 
 | ||||||
|  |     case Regs::StencilAction::IncrementWrap: | ||||||
|  |         return old_stencil + 1; | ||||||
|  | 
 | ||||||
|  |     case Regs::StencilAction::DecrementWrap: | ||||||
|  |         return old_stencil - 1; | ||||||
|  | 
 | ||||||
|     default: |     default: | ||||||
|         LOG_CRITICAL(HW_GPU, "Unknown stencil action %x", (int)action); |         LOG_CRITICAL(HW_GPU, "Unknown stencil action %x", (int)action); | ||||||
|         UNIMPLEMENTED(); |         UNIMPLEMENTED(); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue