aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-05-10 08:50:14 -0700
committerEric Anholt <[email protected]>2012-05-14 16:51:00 -0700
commit1e188f2daef1ae31224d2429bcc1fab75c81fb36 (patch)
tree7f3ce7a59aa1220a8f812c34fe90c24c8f00eb82 /src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
parent1c1040dcf02898fe99316ea2bf5482a5bb2356cf (diff)
intel: Fix signed/unsigned comparison warnings.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp6
1 files changed, 3 insertions, 3 deletions
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 57b05192b35..2d9d0c82e98 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
@@ -34,7 +34,7 @@ using namespace brw;
namespace brw {
static void
-assign(int *reg_hw_locations, reg *reg)
+assign(unsigned int *reg_hw_locations, reg *reg)
{
if (reg->file == GRF) {
reg->reg = reg_hw_locations[reg->reg];
@@ -44,7 +44,7 @@ assign(int *reg_hw_locations, reg *reg)
void
vec4_visitor::reg_allocate_trivial()
{
- int hw_reg_mapping[this->virtual_grf_count];
+ unsigned int hw_reg_mapping[this->virtual_grf_count];
bool virtual_grf_used[this->virtual_grf_count];
int i;
int next;
@@ -142,7 +142,7 @@ brw_alloc_reg_set_for_classes(struct brw_context *brw,
void
vec4_visitor::reg_allocate()
{
- int hw_reg_mapping[virtual_grf_count];
+ unsigned int hw_reg_mapping[virtual_grf_count];
int first_assigned_grf = this->first_non_payload_grf;
int base_reg_count = max_grf - first_assigned_grf;
int class_sizes[base_reg_count];