• Rhys Kidd's avatar
    i965: Resolve GCC sign-compare warning. · 2c300765
    Rhys Kidd authored
    mesa/src/mesa/drivers/dri/i965/brw_eu_compact.c: In function 'set_3src_control_index':
    mesa/src/mesa/drivers/dri/i965/brw_eu_compact.c:805:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (int i = 0; i < ARRAY_SIZE(gen8_3src_control_index_table); i++) {
                          ^
    mesa/src/mesa/drivers/dri/i965/brw_eu_compact.c: In function 'set_3src_source_index':
    mesa/src/mesa/drivers/dri/i965/brw_eu_compact.c:839:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (int i = 0; i < ARRAY_SIZE(gen8_3src_source_index_table); i++) {
                          ^
    mesa/src/mesa/drivers/dri/i965/brw_state_dump.c: In function 'dump_sampler_state':
    mesa/src/mesa/drivers/dri/i965/brw_state_dump.c:382:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (i = 0; i < size / 16; i++) {
                      ^
    mesa/src/mesa/drivers/dri/i965/brw_state_upload.c: In function 'brw_pipeline_state_finished':
    mesa/src/mesa/drivers/dri/i965/brw_state_upload.c:801:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           if (i != pipeline) {
                 ^
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c: In function 'intel_gen7_hiz_buf_create':
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c:1544:47: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (int level = mt->first_level; level <= mt->last_level; ++level) {
                                                   ^
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c: In function 'intel_gen8_hiz_buf_create':
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c:1638:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (int level = mt->first_level; level <= mt->last_level; ++level) {
                                                ^
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c: In function 'intel_miptree_alloc_hiz':
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c:1771:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
        for (int level = mt->first_level; level <= mt->last_level; ++level) {
                                                ^
    mesa/src/mesa/drivers/dri/i965/intel_mipmap_tree.c:1775:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           for (int layer = 0; layer < mt->level[level].depth; ++layer) {
                                     ^
    Signed-off-by: default avatarRhys Kidd <rhyskidd@gmail.com>
    Reviewed-by: default avatarThomas Helland <thomashelland90@gmail.com>
    Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
    2c300765
brw_eu_compact.c 47 KB