mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	gl_rasterizer: Replace a bunch of UNIMPLEMENTED with ASSERT.
This commit is contained in:
		
							parent
							
								
									f707c2dac4
								
							
						
					
					
						commit
						c6362543d4
					
				@ -120,7 +120,7 @@ RasterizerOpenGL::RasterizerOpenGL() {
 | 
				
			|||||||
        glBufferData(GL_UNIFORM_BUFFER, sizeof(VSUniformData), nullptr, GL_STREAM_COPY);
 | 
					        glBufferData(GL_UNIFORM_BUFFER, sizeof(VSUniformData), nullptr, GL_STREAM_COPY);
 | 
				
			||||||
        glBindBufferBase(GL_UNIFORM_BUFFER, 1, vs_uniform_buffer.handle);
 | 
					        glBindBufferBase(GL_UNIFORM_BUFFER, 1, vs_uniform_buffer.handle);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        UNIMPLEMENTED();
 | 
					        ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    accelerate_draw = AccelDraw::Disabled;
 | 
					    accelerate_draw = AccelDraw::Disabled;
 | 
				
			||||||
@ -167,12 +167,12 @@ void RasterizerOpenGL::SetupVertexShader(VSUniformData* ub_ptr, GLintptr buffer_
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SetupFragmentShader(FSUniformData* ub_ptr, GLintptr buffer_offset) {
 | 
					void RasterizerOpenGL::SetupFragmentShader(FSUniformData* ub_ptr, GLintptr buffer_offset) {
 | 
				
			||||||
    MICROPROFILE_SCOPE(OpenGL_FS);
 | 
					    MICROPROFILE_SCOPE(OpenGL_FS);
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool RasterizerOpenGL::AccelerateDrawBatch(bool is_indexed) {
 | 
					bool RasterizerOpenGL::AccelerateDrawBatch(bool is_indexed) {
 | 
				
			||||||
    if (!has_ARB_separate_shader_objects) {
 | 
					    if (!has_ARB_separate_shader_objects) {
 | 
				
			||||||
        UNIMPLEMENTED();
 | 
					        ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
        return false;
 | 
					        return false;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -212,23 +212,23 @@ void RasterizerOpenGL::FlushAndInvalidateRegion(PAddr addr, u32 size) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
bool RasterizerOpenGL::AccelerateDisplayTransfer(const void* config) {
 | 
					bool RasterizerOpenGL::AccelerateDisplayTransfer(const void* config) {
 | 
				
			||||||
    MICROPROFILE_SCOPE(OpenGL_Blits);
 | 
					    MICROPROFILE_SCOPE(OpenGL_Blits);
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool RasterizerOpenGL::AccelerateTextureCopy(const void* config) {
 | 
					bool RasterizerOpenGL::AccelerateTextureCopy(const void* config) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool RasterizerOpenGL::AccelerateFill(const void* config) {
 | 
					bool RasterizerOpenGL::AccelerateFill(const void* config) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bool RasterizerOpenGL::AccelerateDisplay(const void* config, PAddr framebuffer_addr,
 | 
					bool RasterizerOpenGL::AccelerateDisplay(const void* config, PAddr framebuffer_addr,
 | 
				
			||||||
                                         u32 pixel_stride, ScreenInfo& screen_info) {
 | 
					                                         u32 pixel_stride, ScreenInfo& screen_info) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -290,33 +290,33 @@ void main() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncClipEnabled() {
 | 
					void RasterizerOpenGL::SyncClipEnabled() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncClipCoef() {
 | 
					void RasterizerOpenGL::SyncClipCoef() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncCullMode() {
 | 
					void RasterizerOpenGL::SyncCullMode() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncDepthScale() {
 | 
					void RasterizerOpenGL::SyncDepthScale() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncDepthOffset() {
 | 
					void RasterizerOpenGL::SyncDepthOffset() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncBlendEnabled() {
 | 
					void RasterizerOpenGL::SyncBlendEnabled() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncBlendFuncs() {
 | 
					void RasterizerOpenGL::SyncBlendFuncs() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerOpenGL::SyncBlendColor() {
 | 
					void RasterizerOpenGL::SyncBlendColor() {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -290,7 +290,7 @@ static bool BlitTextures(GLuint src_tex, const MathUtil::Rectangle<u32>& src_rec
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static bool FillSurface(const Surface& surface, const u8* fill_data,
 | 
					static bool FillSurface(const Surface& surface, const u8* fill_data,
 | 
				
			||||||
                        const MathUtil::Rectangle<u32>& fill_rect, GLuint draw_fb_handle) {
 | 
					                        const MathUtil::Rectangle<u32>& fill_rect, GLuint draw_fb_handle) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return true;
 | 
					    return true;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -557,7 +557,7 @@ void CachedSurface::LoadGLBuffer(PAddr load_start, PAddr load_end) {
 | 
				
			|||||||
                    load_end - load_start);
 | 
					                    load_end - load_start);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        if (type == SurfaceType::Texture) {
 | 
					        if (type == SurfaceType::Texture) {
 | 
				
			||||||
            UNIMPLEMENTED();
 | 
					            ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            morton_to_gl_fns[static_cast<size_t>(pixel_format)](stride, height, &gl_buffer[0], addr,
 | 
					            morton_to_gl_fns[static_cast<size_t>(pixel_format)](stride, height, &gl_buffer[0], addr,
 | 
				
			||||||
                                                                load_start, load_end);
 | 
					                                                                load_start, load_end);
 | 
				
			||||||
@ -1102,7 +1102,7 @@ SurfaceRect_Tuple RasterizerCacheOpenGL::GetSurfaceSubRect(const SurfaceParams&
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Surface RasterizerCacheOpenGL::GetTextureSurface(const void* config) {
 | 
					Surface RasterizerCacheOpenGL::GetTextureSurface(const void* config) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return {};
 | 
					    return {};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1113,7 +1113,7 @@ SurfaceSurfaceRect_Tuple RasterizerCacheOpenGL::GetFramebufferSurfaces(
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Surface RasterizerCacheOpenGL::GetFillSurface(const void* config) {
 | 
					Surface RasterizerCacheOpenGL::GetFillSurface(const void* config) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
    return {};
 | 
					    return {};
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1357,5 +1357,5 @@ void RasterizerCacheOpenGL::UnregisterSurface(const Surface& surface) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void RasterizerCacheOpenGL::UpdatePagesCachedCount(PAddr addr, u64 size, int delta) {
 | 
					void RasterizerCacheOpenGL::UpdatePagesCachedCount(PAddr addr, u64 size, int delta) {
 | 
				
			||||||
    UNIMPLEMENTED();
 | 
					    // ASSERT_MSG(false, "Unimplemented");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user