mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 19:00:14 -05:00
texture_pass: Fix is_read image qualification
Atomic operations are considered to have both read and write access. This was not being accounted for.
This commit is contained in:
parent
0cd08b3e72
commit
a0365217f5
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ void TexturePass(Environment& env, IR::Program& program) {
|
||||||
throw NotImplementedException("Unexpected separate sampler");
|
throw NotImplementedException("Unexpected separate sampler");
|
||||||
}
|
}
|
||||||
const bool is_written{inst->GetOpcode() != IR::Opcode::ImageRead};
|
const bool is_written{inst->GetOpcode() != IR::Opcode::ImageRead};
|
||||||
const bool is_read{inst->GetOpcode() == IR::Opcode::ImageRead};
|
const bool is_read{inst->GetOpcode() != IR::Opcode::ImageWrite};
|
||||||
if (flags.type == TextureType::Buffer) {
|
if (flags.type == TextureType::Buffer) {
|
||||||
index = descriptors.Add(ImageBufferDescriptor{
|
index = descriptors.Add(ImageBufferDescriptor{
|
||||||
.format = flags.image_format,
|
.format = flags.image_format,
|
||||||
|
|
Loading…
Reference in a new issue