diff options
author | Marek Olšák <[email protected]> | 2017-08-17 02:09:54 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-09-11 02:10:23 +0200 |
commit | 7aaf4c73de1ad2526b5cd3ddbeecb687b66f6747 (patch) | |
tree | dde8b6e06845dd63acc01665902ef5f5e7e9172c /src/gallium/auxiliary/util/u_blitter.h | |
parent | e4c457f695c9be29eeacc2268d54bc405c8f1ad5 (diff) |
gallium/u_blitter: add new union blitter_attrib to replace pipe_color_union
Reviewed-by: Nicolai Hähnle <[email protected]>
Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_blitter.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.h b/src/gallium/auxiliary/util/u_blitter.h index f38908700e2..8cc588c5300 100644 --- a/src/gallium/auxiliary/util/u_blitter.h +++ b/src/gallium/auxiliary/util/u_blitter.h @@ -44,6 +44,14 @@ enum blitter_attrib_type { UTIL_BLITTER_ATTRIB_TEXCOORD }; +union blitter_attrib { + float color[4]; + + struct { + float x1, y1, x2, y2; + } texcoord; +}; + struct blitter_context { /** @@ -75,7 +83,7 @@ struct blitter_context int x1, int y1, int x2, int y2, float depth, enum blitter_attrib_type type, - const union pipe_color_union *color); + const union blitter_attrib *attrib); /* Whether the blitter is running. */ bool running; @@ -148,7 +156,7 @@ void util_blitter_set_texture_multisample(struct blitter_context *blitter, void util_blitter_draw_rectangle(struct blitter_context *blitter, int x1, int y1, int x2, int y2, float depth, enum blitter_attrib_type type, - const union pipe_color_union *attrib); + const union blitter_attrib *attrib); /* |