Skip to content

Commit ed64e30

Browse files
committed
[GPU] Remove implicit bool cast in memexport checks
1 parent 0e81293 commit ed64e30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/xenia/gpu/d3d12/d3d12_command_processor.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
21252125
return false;
21262126
}
21272127
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader);
2128-
bool memexport_used_vertex = vertex_shader->memexport_eM_written();
2128+
bool memexport_used_vertex = vertex_shader->memexport_eM_written() != 0;
21292129

21302130
// Pixel shader analysis.
21312131
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);
@@ -2154,7 +2154,7 @@ bool D3D12CommandProcessor::IssueDraw(xenos::PrimitiveType primitive_type,
21542154
}
21552155
}
21562156
bool memexport_used_pixel =
2157-
pixel_shader && pixel_shader->memexport_eM_written();
2157+
pixel_shader && (pixel_shader->memexport_eM_written() != 0);
21582158
bool memexport_used = memexport_used_vertex || memexport_used_pixel;
21592159

21602160
if (!BeginSubmission(true)) {

src/xenia/gpu/vulkan/vulkan_command_processor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2175,7 +2175,7 @@ bool VulkanCommandProcessor::IssueDraw(xenos::PrimitiveType prim_type,
21752175
return false;
21762176
}
21772177
pipeline_cache_->AnalyzeShaderUcode(*vertex_shader);
2178-
bool memexport_used_vertex = vertex_shader->memexport_eM_written();
2178+
bool memexport_used_vertex = vertex_shader->memexport_eM_written() != 0;
21792179

21802180
// Pixel shader analysis.
21812181
bool primitive_polygonal = draw_util::IsPrimitivePolygonal(regs);

0 commit comments

Comments
 (0)