mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-16 05:30:33 +01:00
rsx: Fix context_dma enum naming
This commit is contained in:
parent
a6321caaa2
commit
578d30d3ae
|
|
@ -58,19 +58,8 @@ namespace rsx
|
|||
|
||||
u32 get_report_data_impl([[maybe_unused]] rsx::context* ctx, u32 offset)
|
||||
{
|
||||
u32 location = 0;
|
||||
blit_engine::context_dma report_dma = REGS(ctx)->context_dma_report();
|
||||
|
||||
switch (report_dma)
|
||||
{
|
||||
case blit_engine::context_dma::to_memory_get_report: location = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_LOCAL; break;
|
||||
case blit_engine::context_dma::report_location_main: location = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_MAIN; break;
|
||||
case blit_engine::context_dma::memory_host_buffer: location = CELL_GCM_CONTEXT_DMA_MEMORY_HOST_BUFFER; break;
|
||||
default:
|
||||
return vm::addr_t(0);
|
||||
}
|
||||
|
||||
return vm::cast(get_address(offset, location));
|
||||
return vm::cast(get_address(offset, static_cast<u32>(report_dma)));
|
||||
}
|
||||
|
||||
void set_fragment_texture_dirty_bit(rsx::context* ctx, u32 arg, u32 index)
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ void fmt_class_string<blit_engine::context_dma>::format(std::string& out, u64 ar
|
|||
switch (value)
|
||||
{
|
||||
case blit_engine::context_dma::report_location_main: return "report location main";
|
||||
case blit_engine::context_dma::to_memory_get_report: return "to memory get report";
|
||||
case blit_engine::context_dma::report_location_local: return "report location local";
|
||||
case blit_engine::context_dma::memory_host_buffer: return "memory host buffer";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1820,7 +1820,7 @@ namespace rsx
|
|||
|
||||
enum class context_dma : u32
|
||||
{
|
||||
to_memory_get_report = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_LOCAL,
|
||||
report_location_local = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_LOCAL,
|
||||
report_location_main = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_MAIN,
|
||||
memory_host_buffer = CELL_GCM_CONTEXT_DMA_MEMORY_HOST_BUFFER,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue