瀏覽代碼

Merge pull request #11149 from ameerj/astc-perf-prod

host_shaders: ASTC compute shader optimizations
liamwhite 3 年之前
父節點
當前提交
18c08cee43
共有 2 個文件被更改,包括 331 次插入404 次删除
  1. 330 404
      src/video_core/host_shaders/astc_decoder.comp
  2. 1 0
      src/video_core/renderer_opengl/util_shaders.cpp

文件差異過大導致無法顯示
+ 330 - 404
src/video_core/host_shaders/astc_decoder.comp


+ 1 - 0
src/video_core/renderer_opengl/util_shaders.cpp

@@ -68,6 +68,7 @@ void UtilShaders::ASTCDecode(Image& image, const StagingBufferMap& map,
                              std::span<const VideoCommon::SwizzleParameters> swizzles) {
     static constexpr GLuint BINDING_INPUT_BUFFER = 0;
     static constexpr GLuint BINDING_OUTPUT_IMAGE = 0;
+    program_manager.LocalMemoryWarmup();
 
     const Extent2D tile_size{
         .width = VideoCore::Surface::DefaultBlockWidth(image.info.format),

部分文件因文件數量過多而無法顯示