rsx/common: Fix handling of UB256

This commit is contained in:
Vincent Lejeune
2016-02-22 21:36:48 +01:00
parent 09fc492257
commit 5ef7f8bf3e
7 changed files with 33 additions and 17 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "stdafx.h"
#include "Emu\RSX\Common\BufferUtils.h"
TEST_CLASS(rsx_common)
{
// Check UB256 size is correctly set in write_vertex_array_data_to_buffer
TEST_METHOD(ub256_upload)
{
std::vector<gsl::byte> dest_buffer(2200);
std::vector<gsl::byte> src_buffer(100000); // Big enough
write_vertex_array_data_to_buffer(gsl::span<gsl::byte>(dest_buffer), src_buffer.data(), 0, 550, rsx::vertex_base_type::ub256, 4, 20);
}
};