mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[dxbc] Do not emit OpImageQueryLevels for multisampled images
This commit is contained in:
parent
9c66c4bf1d
commit
2b70ba8f77
@ -5513,12 +5513,12 @@ namespace dxvk {
|
||||
result.type.ctype = DxbcScalarType::Uint32;
|
||||
result.type.ccount = 1;
|
||||
|
||||
if (info.image.sampled == 1) {
|
||||
if (info.image.ms == 0 && info.image.sampled == 1) {
|
||||
result.id = m_module.opImageQueryLevels(
|
||||
getVectorTypeId(result.type),
|
||||
m_module.opLoad(info.typeId, info.varId));
|
||||
} else {
|
||||
// Report one LOD in case of UAVs
|
||||
// Report one LOD in case of UAVs or multisampled images
|
||||
result.id = m_module.constu32(1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user