[GPU] Remove implicit bool cast in memexport checks
This commit is contained in:
parent
0e81293b02
commit
ed64e3072b
|
@ -2125,7 +2125,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
|
|||
return false;
|
||||
}
|
||||
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader);
|
||||
bool memexport_used_vertex = vertex_shader->memexport_eM_written();
|
||||
bool memexport_used_vertex = vertex_shader->memexport_eM_written() != 0;
|
||||
|
||||
// Pixel shader analysis.
|
||||
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);
|
||||
|
@ -2154,7 +2154,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
|
|||
}
|
||||
}
|
||||
bool memexport_used_pixel =
|
||||
pixel_shader && pixel_shader->memexport_eM_written();
|
||||
pixel_shader && (pixel_shader->memexport_eM_written() != 0);
|
||||
bool memexport_used = memexport_used_vertex || memexport_used_pixel;
|
||||
|
||||
if (!BeginSubmission(true)) {
|
||||
|
|
|
@ -2175,7 +2175,7 @@ bool VulkanCommandProcessor::IssueDraw(xenos::PrimitiveType prim_type,
|
|||
return false;
|
||||
}
|
||||
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader);
|
||||
bool memexport_used_vertex = vertex_shader->memexport_eM_written();
|
||||
bool memexport_used_vertex = vertex_shader->memexport_eM_written() != 0;
|
||||
|
||||
// Pixel shader analysis.
|
||||
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);
|
||||
|
|
Loading…
Reference in New Issue