diff options
author | Rob Clark <[email protected]> | 2017-11-22 12:37:15 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2017-12-17 12:41:32 -0500 |
commit | 37464efa3f80c141c2d73af5615e401763b2bbc8 (patch) | |
tree | 65f99b572076668d4f1cd5e27ec5466472ba0166 /src/gallium/drivers/freedreno/freedreno_blitter.h | |
parent | b852c3bf67cf1a047b8d17391506b19b5d1bdb70 (diff) |
freedreno: add generic blitter
Basically a clone of util_blitter_blit() but with special handling to
blit PIPE_BUFFER as a PIPE_TEXTURE_1D.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_blitter.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_blitter.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_blitter.h b/src/gallium/drivers/freedreno/freedreno_blitter.h new file mode 100644 index 00000000000..9d213b577b5 --- /dev/null +++ b/src/gallium/drivers/freedreno/freedreno_blitter.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2017 Rob Clark <[email protected]> + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Authors: + * Rob Clark <[email protected]> + */ + +#ifndef FREEDRENO_BLIT_H_ +#define FREEDRENO_BLIT_H_ + +#include "pipe/p_state.h" + +#include "freedreno_context.h" + +void fd_blitter_blit(struct fd_context *ctx, const struct pipe_blit_info *info); + +#endif /* FREEDRENO_BLIT_H_ */ |