summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiavash Eliasi <siavashserver@gmail.com>2013-12-12 18:28:52 +0330
committerMarek Olšák <marek.olsak@amd.com>2014-01-31 00:50:08 +0100
commit03065ea05cd601021dc20b9d809ec75e63621e31 (patch)
tree4e26de2350a3969b8825adcd75eba0bafa095750
parent9f26ad00d7f70af72b8ca53604c62587fc2173c4 (diff)
r600g: Removed unnecessary positivity check for unsigned int variable.
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
-rw-r--r--src/gallium/drivers/r600/r600_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 86f79e209b..c5922a8fa5 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -387,7 +387,7 @@ static int reserve_cfile(struct r600_bytecode *bc, struct alu_bank_swizzle *bs,
static int is_gpr(unsigned sel)
{
- return (sel >= 0 && sel <= 127);
+ return (sel <= 127);
}
/* CB constants start at 512, and get translated to a kcache index when ALU