[Mesa-dev] [PATCH mesa 2/2] etnaviv: fix boolean test
Eric Engestrom
eric at engestrom.ch
Thu Feb 9 00:11:08 UTC 2017
CID: 1400128
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
---
src/gallium/drivers/etnaviv/etnaviv_screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c
index 8f2882f573..e398629a42 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_screen.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c
@@ -578,7 +578,7 @@ etna_get_specs(struct etna_screen *screen)
DBG("could not get ETNA_GPU_PIXEL_PIPES");
goto fail;
}
- if (val < 1 && val > ETNA_MAX_PIXELPIPES) {
+ if (val < 1 || val > ETNA_MAX_PIXELPIPES) {
if (val == 0) {
fprintf(stderr, "Warning: zero pixel pipes (update kernel?)\n");
val = 1;
--
Cheers,
Eric
More information about the mesa-dev
mailing list