mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-30 04:24:11 +01:00
[dxbc] Fix sampleinfo_uint instruction
This commit is contained in:
parent
d68d62f837
commit
5cb65a6c19
@ -2709,9 +2709,8 @@ namespace dxvk {
|
||||
// TODO Check if resource is bound
|
||||
DxbcRegisterValue sampleCount = emitQueryTextureSamples(ins.src[0]);
|
||||
|
||||
if (ins.controls.resinfoType != DxbcResinfoType::Uint) {
|
||||
sampleCount.type.ctype = DxbcScalarType::Float32;
|
||||
sampleCount.type.ccount = 1;
|
||||
if (ins.controls.returnType != DxbcInstructionReturnType::Uint) {
|
||||
sampleCount.type = { DxbcScalarType::Float32, 1 };
|
||||
sampleCount.id = m_module.opConvertUtoF(
|
||||
getVectorTypeId(sampleCount.type),
|
||||
sampleCount.id);
|
||||
|
@ -108,6 +108,8 @@ namespace dxvk {
|
||||
// Opcode controls. It will depend on the
|
||||
// opcode itself which ones are valid.
|
||||
// TODO refactor this nonsense
|
||||
m_instruction.controls.returnType =
|
||||
static_cast<DxbcInstructionReturnType>(bit::extract(token, 11, 11));
|
||||
m_instruction.controls.globalFlags =
|
||||
static_cast<DxbcGlobalFlag>(bit::extract(token, 11, 14));
|
||||
m_instruction.controls.zeroTest =
|
||||
|
@ -240,20 +240,21 @@ namespace dxvk {
|
||||
* only one of the members will be valid.
|
||||
*/
|
||||
struct DxbcShaderOpcodeControls {
|
||||
DxbcGlobalFlags globalFlags;
|
||||
DxbcZeroTest zeroTest;
|
||||
DxbcSyncFlags syncFlags;
|
||||
DxbcResourceDim resourceDim;
|
||||
DxbcResinfoType resinfoType;
|
||||
DxbcInterpolationMode interpolation;
|
||||
DxbcSamplerMode samplerMode;
|
||||
DxbcPrimitiveTopology primitiveTopology;
|
||||
DxbcPrimitive primitive;
|
||||
DxbcTessDomain tessDomain;
|
||||
DxbcTessOutputPrimitive tessOutputPrimitive;
|
||||
DxbcTessPartitioning tessPartitioning;
|
||||
DxbcUavFlags uavFlags;
|
||||
uint32_t controlPointCount;
|
||||
DxbcInstructionReturnType returnType;
|
||||
DxbcGlobalFlags globalFlags;
|
||||
DxbcZeroTest zeroTest;
|
||||
DxbcSyncFlags syncFlags;
|
||||
DxbcResourceDim resourceDim;
|
||||
DxbcResinfoType resinfoType;
|
||||
DxbcInterpolationMode interpolation;
|
||||
DxbcSamplerMode samplerMode;
|
||||
DxbcPrimitiveTopology primitiveTopology;
|
||||
DxbcPrimitive primitive;
|
||||
DxbcTessDomain tessDomain;
|
||||
DxbcTessOutputPrimitive tessOutputPrimitive;
|
||||
DxbcTessPartitioning tessPartitioning;
|
||||
DxbcUavFlags uavFlags;
|
||||
uint32_t controlPointCount;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user