mesa/bufferobj: don't double negate the range
authorDave Airlie <airlied@redhat.com>
Mon, 23 Oct 2017 00:34:54 +0000 (10:34 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Oct 2017 22:40:23 +0000 (08:40 +1000)
commit11d688d9f0d2ee4d0178d1807c0075e5e8364b1d
tree2fed5e3113acef9c965863b2058ce5c02a598df8
parent013313cf895e4d47b2631d5f4dd32fcbce2b0a17
mesa/bufferobj: don't double negate the range

This fixes a regression I introduced refactoring this code,
I managed to invert range twice, I moved the inversion into
the common code, but forgot to stop doing it in the callee.

Fixes: GL45-CTS.multi_bind.dispatch_bind_buffers_base
Fixes: 35ac13ed3 (mesa/bufferobj: consolidate some codepaths between ubo/ssbo/atomics.)
Reported-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/bufferobj.c