[SPIR-V] Fix fetch constant LOD bias signedness
This commit is contained in:
parent
d8b0227cbd
commit
5dca11a892
|
@ -1600,7 +1600,7 @@ void SpirvShaderTranslator::ProcessTextureFetchInstruction(
|
||||||
spv::Id lod = builder_->createBinOp(
|
spv::Id lod = builder_->createBinOp(
|
||||||
spv::OpFMul, type_float_,
|
spv::OpFMul, type_float_,
|
||||||
builder_->createUnaryOp(
|
builder_->createUnaryOp(
|
||||||
spv::OpConvertUToF, type_float_,
|
spv::OpConvertSToF, type_float_,
|
||||||
builder_->createTriOp(spv::OpBitFieldSExtract, type_int_,
|
builder_->createTriOp(spv::OpBitFieldSExtract, type_int_,
|
||||||
fetch_constant_word_4_signed,
|
fetch_constant_word_4_signed,
|
||||||
builder_->makeUintConstant(12),
|
builder_->makeUintConstant(12),
|
||||||
|
|
Loading…
Reference in New Issue