[GPU] Set VGT_DRAW_INITIATOR and use major mode from it
This commit is contained in:
@@ -1245,7 +1245,8 @@ Shader* D3D12CommandProcessor::LoadShader(ShaderType shader_type,
|
||||
|
||||
bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
|
||||
uint32_t index_count,
|
||||
IndexBufferInfo* index_buffer_info) {
|
||||
IndexBufferInfo* index_buffer_info,
|
||||
bool major_mode_explicit) {
|
||||
auto device = GetD3D12Context()->GetD3D12Provider()->GetDevice();
|
||||
auto& regs = *register_file_;
|
||||
|
||||
@@ -1272,8 +1273,7 @@ bool D3D12CommandProcessor::IssueDraw(PrimitiveType primitive_type,
|
||||
|
||||
// Check if using tessellation to get the correct primitive type.
|
||||
bool tessellated;
|
||||
if (uint32_t(primitive_type) >=
|
||||
uint32_t(PrimitiveType::kExplicitMajorModeForceStart)) {
|
||||
if (major_mode_explicit) {
|
||||
tessellated = regs.Get<reg::VGT_OUTPUT_PATH_CNTL>().path_select ==
|
||||
xenos::VGTOutputPath::kTessellationEnable;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user