summaryrefslogtreecommitdiff
path: root/src/video_core/debug_utils
diff options
context:
space:
mode:
authorGravatar Rohit Nirmal2014-11-30 01:44:30 -0600
committerGravatar Rohit Nirmal2014-11-30 22:29:23 -0600
commitf9b53c3e943c06e982e0abbd2f87245d63c17776 (patch)
tree2a0e0150355acec549a08488c8b2b7f12167d4ef /src/video_core/debug_utils
parentMerge pull request #227 from vaguilar/fix-warnings (diff)
downloadyuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.gz
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.tar.xz
yuzu-f9b53c3e943c06e982e0abbd2f87245d63c17776.zip
Silence a few -Wsign-compare warnings.
Diffstat (limited to 'src/video_core/debug_utils')
-rw-r--r--src/video_core/debug_utils/debug_utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/debug_utils/debug_utils.cpp b/src/video_core/debug_utils/debug_utils.cpp
index 275b06b7c..8a5f11424 100644
--- a/src/video_core/debug_utils/debug_utils.cpp
+++ b/src/video_core/debug_utils/debug_utils.cpp
@@ -155,7 +155,7 @@ void DumpShader(const u32* binary_data, u32 binary_size, const u32* swizzle_data
155 155
156 // This is put into a try-catch block to make sure we notice unknown configurations. 156 // This is put into a try-catch block to make sure we notice unknown configurations.
157 std::vector<OutputRegisterInfo> output_info_table; 157 std::vector<OutputRegisterInfo> output_info_table;
158 for (int i = 0; i < 7; ++i) { 158 for (unsigned i = 0; i < 7; ++i) {
159 using OutputAttributes = Pica::Regs::VSOutputAttributes; 159 using OutputAttributes = Pica::Regs::VSOutputAttributes;
160 160
161 // TODO: It's still unclear how the attribute components map to the register! 161 // TODO: It's still unclear how the attribute components map to the register!
@@ -375,8 +375,8 @@ void DumpTexture(const Pica::Regs::TextureConfig& texture_config, u8* data) {
375 png_write_info(png_ptr, info_ptr); 375 png_write_info(png_ptr, info_ptr);
376 376
377 buf = new u8[row_stride * texture_config.height]; 377 buf = new u8[row_stride * texture_config.height];
378 for (int y = 0; y < texture_config.height; ++y) { 378 for (unsigned y = 0; y < texture_config.height; ++y) {
379 for (int x = 0; x < texture_config.width; ++x) { 379 for (unsigned x = 0; x < texture_config.width; ++x) {
380 // Cf. rasterizer code for an explanation of this algorithm. 380 // Cf. rasterizer code for an explanation of this algorithm.
381 int texel_index_within_tile = 0; 381 int texel_index_within_tile = 0;
382 for (int block_size_index = 0; block_size_index < 3; ++block_size_index) { 382 for (int block_size_index = 0; block_size_index < 3; ++block_size_index) {
@@ -402,7 +402,7 @@ void DumpTexture(const Pica::Regs::TextureConfig& texture_config, u8* data) {
402 } 402 }
403 403
404 // Write image data 404 // Write image data
405 for (auto y = 0; y < texture_config.height; ++y) 405 for (unsigned y = 0; y < texture_config.height; ++y)
406 { 406 {
407 u8* row_ptr = (u8*)buf + y * row_stride; 407 u8* row_ptr = (u8*)buf + y * row_stride;
408 u8* ptr = row_ptr; 408 u8* ptr = row_ptr;