gallium: split transfer_inline_write into buffer and texture callbacks