mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 01:14:56 +00:00
shader_recompiler: patch fmask access instructions (#1439)
* Fix multisample texture fetch * Patch some fmask reads * clang-format * Assert insteed of ignore, coordinate fixes * Patch ImageQueryDimensions
This commit is contained in:
parent
fe389e560a
commit
aa4c6c0178
5 changed files with 94 additions and 5 deletions
|
@ -295,6 +295,11 @@ struct Image {
|
|||
return GetTilingMode() != TilingMode::Display_Linear;
|
||||
}
|
||||
|
||||
bool IsFmask() const noexcept {
|
||||
return GetDataFmt() >= DataFormat::FormatFmask8_1 &&
|
||||
GetDataFmt() <= DataFormat::FormatFmask64_8;
|
||||
}
|
||||
|
||||
bool IsPartialCubemap() const {
|
||||
const auto viewed_slice = last_array - base_array + 1;
|
||||
return GetType() == ImageType::Cube && viewed_slice < 6;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue