i965/fs: Fix signedness of the return value of fs_inst::size_read().
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 8 Sep 2016 00:00:58 +0000 (17:00 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:56 +0000 (14:50 -0700)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h

index e40a7d476770c4eae0005a6e8d9505be8f6a8adc..4c38b18483c9024a64b477018a6d779db27db68a 100644 (file)
@@ -811,7 +811,7 @@ fs_inst::components_read(unsigned i) const
    }
 }
 
-int
+unsigned
 fs_inst::size_read(int arg) const
 {
    switch (opcode) {
index 5275953363baf7f9fdb1b06b0cd68562656e3b6e..721c2eb34e82471314f38f7187150367d2901f62 100644 (file)
@@ -338,7 +338,7 @@ public:
    bool is_partial_write() const;
    bool is_copy_payload(const brw::simple_allocator &grf_alloc) const;
    unsigned components_read(unsigned i) const;
-   int size_read(int arg) const;
+   unsigned size_read(int arg) const;
    bool can_do_source_mods(const struct gen_device_info *devinfo);
    bool can_change_types() const;
    bool has_side_effects() const;