OSDN Git Service

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 72c490b..2dfafdf 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 3186824..3f2bb05 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;
    }