mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-26 08:15:59 +03:00
[PR #1675] [MERGED] specialization: Fix fetch shader field type #2240
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#2240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/1675
Author: @squidbus
Created: 12/6/2024
Status: ✅ Merged
Merged: 12/6/2024
Merged by: @georgemoralis
Base:
main← Head:fix-fetch-shader📝 Commits (1)
8f3d252specialization: Fix fetch shader field type📊 Changes
4 files changed (+28 additions, -24 deletions)
View changed files
📝
src/shader_recompiler/frontend/fetch_shader.h(+0 -13)📝
src/shader_recompiler/specialization.h(+9 -10)📝
src/video_core/renderer_vulkan/vk_pipeline_cache.cpp(+2 -0)📝
src/video_core/renderer_vulkan/vk_rasterizer.cpp(+17 -1)📄 Description
fetch_shader_datawas not wrapped inoptionaland thusGetProgramwould always return it as the fetch shader, regardless of whether the shader actually had a fetch shader. Normally this was harmless since vertex shaders are bound last, but in the case of geometry shaders this is not true. Changed to optional type to fix this.With this fix I also had to fix up
GetDrawOffsetsto work when there is no fetch shader for a pipeline; it worked previously as there would unintentionally be a default-initialized fetch shader object.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.