mesa/st: pre-clamp values for st_clear_buffer_subdata when possible
I found myself writing this exact code, so then I looked and copied it from radeonsi instead
I found myself writing this exact code, so then I looked and copied it from radeonsi instead