glx: lets compare drawing command sizes using MIN3
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Mon, 7 Dec 2020 10:50:28 +0000 (12:50 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 14 Dec 2020 16:57:00 +0000 (16:57 +0000)
commit618e480f3854d8e79187e16152c9cee47146258d
treed426653553f7028d690f0940c58775c87aff2b64
parentef4101d6d73614f4f41708050f963d6038f91e25
glx: lets compare drawing command sizes using MIN3

It has to fix coverity issue CID1470555:
```
481        if (bufSize > __GLX_RENDER_CMD_SIZE_LIMIT) {
482           bufSize = __GLX_RENDER_CMD_SIZE_LIMIT;
483        }
484        if (bufSize > __GLX_MAX_RENDER_CMD_SIZE) {
>>>     CID 1470555:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "bufSize = 64000;".
485           bufSize = __GLX_MAX_RENDER_CMD_SIZE;
486        }
```

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7965>
src/glx/indirect_glx.c