[GPU] Remove implicit bool cast in memexport checks

This commit is contained in:
Triang3l 2023-05-05 21:38:45 +03:00
parent 0e81293b02
commit ed64e3072b
2 changed files with 3 additions and 3 deletions

View file

@ -2125,7 +2125,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
return false; return false;
} }
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader); 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. // Pixel shader analysis.
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs); bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);
@ -2154,7 +2154,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
} }
} }
bool memexport_used_pixel = 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; bool memexport_used = memexport_used_vertex || memexport_used_pixel;
if (!BeginSubmission(true)) { if (!BeginSubmission(true)) {

View file

@ -2175,7 +2175,7 @@ bool VulkanCommandProcessor::IssueDraw(xenos::PrimitiveType prim_type,
return false; return false;
} }
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader); 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. // Pixel shader analysis.
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs); bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);