mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-07 01:00:06 +01:00
[amdgpu] Minor UInt8 fix
This commit is contained in:
parent
e0a43d8960
commit
a96269938e
|
|
@ -137,6 +137,9 @@ public:
|
|||
spirv::UIntType getUInt64Type() {
|
||||
return spirv::cast<spirv::UIntType>(getType(TypeId::UInt64));
|
||||
}
|
||||
spirv::UIntType getUInt8Type() {
|
||||
return spirv::cast<spirv::UIntType>(getType(TypeId::UInt8));
|
||||
}
|
||||
|
||||
spirv::VectorOfType<spirv::UIntType> getUint32x2Type() {
|
||||
return spirv::cast<spirv::VectorOfType<spirv::UIntType>>(
|
||||
|
|
|
|||
|
|
@ -5312,6 +5312,9 @@ spirv::Value Fragment::createBitcast(spirv::Type to, spirv::Type from,
|
|||
return value;
|
||||
}
|
||||
|
||||
if (from == context->getUInt8Type())
|
||||
value = builder.createUConvert(to, spirv::cast<spirv::UIntValue>(value));
|
||||
|
||||
if (from == context->getFloat32Type()) {
|
||||
if (auto origValue = context->findFloat32Value(value)) {
|
||||
if (to == context->getUInt32Type()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue