i965: Remove useless reg_offset >= 0 tests.
authorMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 16:47:39 +0000 (09:47 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 16:59:46 +0000 (09:59 -0700)
Commit eb9bd3a1 changed the type of this field to uint16_t.

src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp

index 72c490bee629b66049f7cada8c6c9c17dac30ecb..2dfafdf9d6cd57239d7a32c2213170712da028a1 100644 (file)
@@ -34,7 +34,6 @@ static void
 assign_reg(unsigned *reg_hw_locations, fs_reg *reg)
 {
    if (reg->file == GRF) {
-      assert(reg->reg_offset >= 0);
       reg->reg = reg_hw_locations[reg->reg] + reg->reg_offset;
       reg->reg_offset = 0;
    }
index 31868240a0a29427ab7d2d5ff0e24cc65c05f4da..3f2bb059122e1eb5cbd12394bfd59a8749636bcc 100644 (file)
@@ -35,7 +35,6 @@ static void
 assign(unsigned int *reg_hw_locations, backend_reg *reg)
 {
    if (reg->file == GRF) {
-      assert(reg->reg_offset >= 0);
       reg->reg = reg_hw_locations[reg->reg] + reg->reg_offset;
       reg->reg_offset = 0;
    }