diff options
author | Christian Gmeiner <[email protected]> | 2017-02-08 13:14:05 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-03-01 13:34:41 +0000 |
commit | 87fb61fad7798e2fd8add59f74f6f06b21de6658 (patch) | |
tree | 2149eec7a7fbcc2da866295f296664cf84af416b /src/gallium/drivers | |
parent | 6e3da9c81c2112e72829ed45ac34c0916de71a47 (diff) |
etnaviv: remove number of pixel pipes validation
This validation was added before the etnaviv drm driver landed in
the linux kernel. Due some pre-merge API changes we had to fix-up
this value but with a mainline kernel this is not a problem anymore.
Lets remove that validation which also gets rid of problem caught
by Coverity, reported to me by imirkin.
Cc: "17.0" <[email protected]>
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
(cherry picked from commit e8d600710cf7c1a646a36947ee7752c89860bf11)
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_screen.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_screen.c b/src/gallium/drivers/etnaviv/etnaviv_screen.c index 918b78d7c51..28db9b95bf2 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_screen.c +++ b/src/gallium/drivers/etnaviv/etnaviv_screen.c @@ -576,16 +576,6 @@ 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 == 0) { - fprintf(stderr, "Warning: zero pixel pipes (update kernel?)\n"); - val = 1; - } else { - fprintf(stderr, "Error: bad pixel pipes value %u\n", - (unsigned int)val); - goto fail; - } - } screen->specs.pixel_pipes = val; if (etna_gpu_get_param(screen->gpu, ETNA_GPU_NUM_CONSTANTS, &val)) { |