nvc0: fix valid range for shader buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 9 Oct 2016 20:17:51 +0000 (22:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 10 Oct 2016 19:32:16 +0000 (21:32 +0200)
commitd43151318aad1c8dc4a44dcb35d3c984ef922960
tree34714cf427a0366c93246664d178d812fd362e60
parent5239bd59207752a3acae367fc3faa76ab17d01e4
nvc0: fix valid range for shader buffers

When offset != 0, the valid range was wrong because the second
argument of util_range_add() is end, not size.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
src/gallium/drivers/nouveau/nvc0/nve4_compute.c