rsx: Fix context_dma enum naming
This commit is contained in:
@@ -58,19 +58,8 @@ namespace rsx
|
|||||||
|
|
||||||
u32 get_report_data_impl([[maybe_unused]] rsx::context* ctx, u32 offset)
|
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();
|
blit_engine::context_dma report_dma = REGS(ctx)->context_dma_report();
|
||||||
|
return vm::cast(get_address(offset, static_cast<u32>(report_dma)));
|
||||||
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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_fragment_texture_dirty_bit(rsx::context* ctx, u32 arg, u32 index)
|
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)
|
switch (value)
|
||||||
{
|
{
|
||||||
case blit_engine::context_dma::report_location_main: return "report location main";
|
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";
|
case blit_engine::context_dma::memory_host_buffer: return "memory host buffer";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1820,7 +1820,7 @@ namespace rsx
|
|||||||
|
|
||||||
enum class context_dma : u32
|
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,
|
report_location_main = CELL_GCM_CONTEXT_DMA_REPORT_LOCATION_MAIN,
|
||||||
memory_host_buffer = CELL_GCM_CONTEXT_DMA_MEMORY_HOST_BUFFER,
|
memory_host_buffer = CELL_GCM_CONTEXT_DMA_MEMORY_HOST_BUFFER,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user