[PR #567] [MERGED] GnmDriver: Clear context support #1638

Closed
opened 2026-02-27 21:13:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/567
Author: @psucien
Created: 8/24/2024
Status: Merged
Merged: 8/25/2024
Merged by: @raphaelthegreat

Base: mainHead: gnmdriver/clear_state


📝 Commits (8)

  • 6fba987 gnmdriver: added support for gpu context reset
  • 4590835 shader_recompiler: minor validation fixes
  • 3e2ccab shader_recompiler: added V_CMPX_GT_I32
  • b2c05dc shader_recompiler: fix for crash on inline sampler access
  • c752341 compilation warnings and dead code elimination
  • 70bcc26 amdgpu: fix for registers addressing
  • c9c8673 libraries: videoout: reduce logging pressure
  • e8f96b5 shader_recompiler: fix for devergence scope detection

📊 Changes

19 files changed (+147 additions, -50 deletions)

View changed files

📝 CMakeLists.txt (+1 -0)
📝 src/core/libraries/gnmdriver/gnmdriver.cpp (+33 -17)
📝 src/core/libraries/videoout/video_out.cpp (+9 -7)
📝 src/shader_recompiler/backend/spirv/emit_spirv.cpp (+1 -0)
📝 src/shader_recompiler/backend/spirv/spirv_emit_context.cpp (+4 -0)
📝 src/shader_recompiler/frontend/control_flow_graph.cpp (+12 -6)
📝 src/shader_recompiler/frontend/instruction.cpp (+14 -0)
📝 src/shader_recompiler/frontend/instruction.h (+1 -0)
📝 src/shader_recompiler/frontend/translate/vector_alu.cpp (+2 -0)
📝 src/shader_recompiler/ir/passes/resource_tracking_pass.cpp (+1 -4)
src/video_core/amdgpu/default_context.cpp (+55 -0)
📝 src/video_core/amdgpu/liverpool.cpp (+1 -0)
📝 src/video_core/amdgpu/liverpool.h (+2 -0)
📝 src/video_core/buffer_cache/buffer.h (+3 -3)
📝 src/video_core/renderer_vulkan/vk_instance.cpp (+1 -0)
📝 src/video_core/renderer_vulkan/vk_rasterizer.cpp (+2 -2)
📝 src/video_core/texture_cache/image.h (+3 -3)
📝 src/video_core/texture_cache/image_view.cpp (+2 -1)
📝 src/video_core/texture_cache/tile_manager.cpp (+0 -7)

📄 Description

This PR adds proper handling of clear state PM4 packet. Also helps with regression in https://github.com/shadps4-emu/shadPS4/pull/551


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/567 **Author:** [@psucien](https://github.com/psucien) **Created:** 8/24/2024 **Status:** ✅ Merged **Merged:** 8/25/2024 **Merged by:** [@raphaelthegreat](https://github.com/raphaelthegreat) **Base:** `main` ← **Head:** `gnmdriver/clear_state` --- ### 📝 Commits (8) - [`6fba987`](https://github.com/shadps4-emu/shadPS4/commit/6fba987df2b000c4a9c7354e4438c1bd8c629906) gnmdriver: added support for gpu context reset - [`4590835`](https://github.com/shadps4-emu/shadPS4/commit/459083528a229652d0e16f220f4a33e62003abb8) shader_recompiler: minor validation fixes - [`3e2ccab`](https://github.com/shadps4-emu/shadPS4/commit/3e2ccabb5e88d82e371c6e2f59f8bcf91ef6d022) shader_recompiler: added `V_CMPX_GT_I32` - [`b2c05dc`](https://github.com/shadps4-emu/shadPS4/commit/b2c05dc09df91025e003a57c99b646ab4facd4a1) shader_recompiler: fix for crash on inline sampler access - [`c752341`](https://github.com/shadps4-emu/shadPS4/commit/c75234181851fd713dfea77982683a308a9ec406) compilation warnings and dead code elimination - [`70bcc26`](https://github.com/shadps4-emu/shadPS4/commit/70bcc26e2da4f45928703e7f952e6c23c9e99cbe) amdgpu: fix for registers addressing - [`c9c8673`](https://github.com/shadps4-emu/shadPS4/commit/c9c86730990b54100cbcbf89e29da4cf3e4c6223) libraries: videoout: reduce logging pressure - [`e8f96b5`](https://github.com/shadps4-emu/shadPS4/commit/e8f96b57ed0247294d95e4d3c50ffa04ed2c7430) shader_recompiler: fix for devergence scope detection ### 📊 Changes **19 files changed** (+147 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+1 -0) 📝 `src/core/libraries/gnmdriver/gnmdriver.cpp` (+33 -17) 📝 `src/core/libraries/videoout/video_out.cpp` (+9 -7) 📝 `src/shader_recompiler/backend/spirv/emit_spirv.cpp` (+1 -0) 📝 `src/shader_recompiler/backend/spirv/spirv_emit_context.cpp` (+4 -0) 📝 `src/shader_recompiler/frontend/control_flow_graph.cpp` (+12 -6) 📝 `src/shader_recompiler/frontend/instruction.cpp` (+14 -0) 📝 `src/shader_recompiler/frontend/instruction.h` (+1 -0) 📝 `src/shader_recompiler/frontend/translate/vector_alu.cpp` (+2 -0) 📝 `src/shader_recompiler/ir/passes/resource_tracking_pass.cpp` (+1 -4) ➕ `src/video_core/amdgpu/default_context.cpp` (+55 -0) 📝 `src/video_core/amdgpu/liverpool.cpp` (+1 -0) 📝 `src/video_core/amdgpu/liverpool.h` (+2 -0) 📝 `src/video_core/buffer_cache/buffer.h` (+3 -3) 📝 `src/video_core/renderer_vulkan/vk_instance.cpp` (+1 -0) 📝 `src/video_core/renderer_vulkan/vk_rasterizer.cpp` (+2 -2) 📝 `src/video_core/texture_cache/image.h` (+3 -3) 📝 `src/video_core/texture_cache/image_view.cpp` (+2 -1) 📝 `src/video_core/texture_cache/tile_manager.cpp` (+0 -7) </details> ### 📄 Description This PR adds proper handling of clear state PM4 packet. Also helps with regression in https://github.com/shadps4-emu/shadPS4/pull/551 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:13:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#1638
No description provided.