mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 11:25:13 +00:00
hot-fix: debug build
This commit is contained in:
parent
55ccec4a38
commit
f7a8e2409c
|
@ -697,8 +697,8 @@ static const size_t amd_gpu_number_format_bit_size = 4; // All values are under
|
|||
|
||||
static size_t GetSurfaceFormatTableIndex(AmdGpu::DataFormat data_format,
|
||||
AmdGpu::NumberFormat num_format) {
|
||||
DEBUG_ASSERT(data_format < 1 << amd_gpu_data_format_bit_size);
|
||||
DEBUG_ASSERT(num_format < 1 << amd_gpu_number_format_bit_size);
|
||||
DEBUG_ASSERT(u32(data_format) < 1 << amd_gpu_data_format_bit_size);
|
||||
DEBUG_ASSERT(u32(num_format) < 1 << amd_gpu_number_format_bit_size);
|
||||
size_t result = static_cast<size_t>(num_format) |
|
||||
(static_cast<size_t>(data_format) << amd_gpu_number_format_bit_size);
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue