mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +12:00
rsx: Remove more deprecated methods
This commit is contained in:
parent
e53be99e1a
commit
c10aa360b1
2 changed files with 0 additions and 44 deletions
|
@ -781,43 +781,6 @@ namespace rsx
|
||||||
memcpy(buffer, fragment_program.texture_scale, 16 * 4 * sizeof(float));
|
memcpy(buffer, fragment_program.texture_scale, 16 * 4 * sizeof(float));
|
||||||
}
|
}
|
||||||
|
|
||||||
void thread::write_inline_array_to_buffer(void *dst_buffer)
|
|
||||||
{
|
|
||||||
u8* src =
|
|
||||||
reinterpret_cast<u8*>(rsx::method_registers.current_draw_clause.inline_vertex_array.data());
|
|
||||||
u8* dst = (u8*)dst_buffer;
|
|
||||||
|
|
||||||
size_t bytes_written = 0;
|
|
||||||
while (bytes_written <
|
|
||||||
rsx::method_registers.current_draw_clause.inline_vertex_array.size() * sizeof(u32))
|
|
||||||
{
|
|
||||||
for (int index = 0; index < rsx::limits::vertex_count; ++index)
|
|
||||||
{
|
|
||||||
const auto &info = rsx::method_registers.vertex_arrays_info[index];
|
|
||||||
|
|
||||||
if (!info.size()) // disabled
|
|
||||||
continue;
|
|
||||||
|
|
||||||
u32 element_size = rsx::get_vertex_type_size_on_host(info.type(), info.size());
|
|
||||||
|
|
||||||
if (info.type() == vertex_base_type::ub && info.size() == 4)
|
|
||||||
{
|
|
||||||
dst[0] = src[3];
|
|
||||||
dst[1] = src[2];
|
|
||||||
dst[2] = src[1];
|
|
||||||
dst[3] = src[0];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
memcpy(dst, src, element_size);
|
|
||||||
|
|
||||||
src += element_size;
|
|
||||||
dst += element_size;
|
|
||||||
|
|
||||||
bytes_written += element_size;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
u64 thread::timestamp()
|
u64 thread::timestamp()
|
||||||
{
|
{
|
||||||
// Get timestamp, and convert it from microseconds to nanoseconds
|
// Get timestamp, and convert it from microseconds to nanoseconds
|
||||||
|
|
|
@ -787,13 +787,6 @@ namespace rsx
|
||||||
*/
|
*/
|
||||||
void fill_fragment_texture_parameters(void *buffer, const RSXFragmentProgram &fragment_program);
|
void fill_fragment_texture_parameters(void *buffer, const RSXFragmentProgram &fragment_program);
|
||||||
|
|
||||||
/**
|
|
||||||
* Write inlined array data to buffer.
|
|
||||||
* The storage of inlined data looks different from memory stored arrays.
|
|
||||||
* There is no swapping required except for 4 u8 (according to Bleach Soul Resurection)
|
|
||||||
*/
|
|
||||||
void write_inline_array_to_buffer(void *dst_buffer);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notify that a section of memory has been mapped
|
* Notify that a section of memory has been mapped
|
||||||
* If there is a notify_memory_unmapped request on this range yet to be handled,
|
* If there is a notify_memory_unmapped request on this range yet to be handled,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue