Mesa (master): r600g: Removed unnecessary positivity check for unsigned int variable.
Marek Olšák
mareko at kemper.freedesktop.org
Thu Jan 30 23:50:28 UTC 2014
Module: Mesa
Branch: master
Commit: 03065ea05cd601021dc20b9d809ec75e63621e31
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=03065ea05cd601021dc20b9d809ec75e63621e31
Author: Siavash Eliasi <siavashserver at gmail.com>
Date: Thu Dec 12 18:46:52 2013 +0330
r600g: Removed unnecessary positivity check for unsigned int variable.
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/r600/r600_asm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index 86f79e2..c5922a8 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
More information about the mesa-commit
mailing list