[dxbc] Fix texture component count for OpImageQueryLod

Not a bug, but we don't need the extra component when dealing with
array images.
This commit is contained in:
Philip Rebohle 2018-04-22 14:08:01 +02:00
parent 0bf97993c6
commit f30923718f
1 changed files with 2 additions and 2 deletions

View File

@ -2684,8 +2684,8 @@ namespace dxvk {
const uint32_t samplerId = samplerReg.idx[0].offset;
// Load texture coordinates
const DxbcRegisterValue coord = emitLoadTexCoord(
texCoordReg, m_textures.at(textureId).imageInfo);
const DxbcRegisterValue coord = emitRegisterLoad(texCoordReg,
DxbcRegMask::firstN(getTexLayerDim(m_textures.at(textureId).imageInfo)));
// Query the LOD. The result is a two-dimensional float32
// vector containing the mip level and virtual LOD numbers.