From 1ac230975e2d3d9429e7a54f05d4fd803419fcd3 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 11 Apr 2015 09:47:39 -0700 Subject: i965: Remove useless reg_offset >= 0 tests. Commit eb9bd3a1 changed the type of this field to uint16_t. --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp | 1 - src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp | 1 - 2 files changed, 2 deletions(-) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp index 72c490b..2dfafdf 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp @@ -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; } diff --git a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp index 3186824..3f2bb05 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp @@ -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; } -- cgit v1.1