mesa: implement generic version of ClearBufferSubData

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>