summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/xa/xa_priv.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-12-14 16:02:54 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2011-12-15 08:28:09 +0100
commitaa7d7656f50f5c49734e3b0fad0f20a89cd5eb5b (patch)
tree250d503f83275c1243819733408d80364983072d /src/gallium/state_trackers/xa/xa_priv.h
parent11c9459ba0b0c0afa1ae0ea41b0edaf069fc421a (diff)
st/xa: Fix format conversion copy alpha channel
When doing format conversion copies between a format without an alpha channel and a format with an alpha channel, make sure the destination alpha is set to 1. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/xa/xa_priv.h')
-rw-r--r--src/gallium/state_trackers/xa/xa_priv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xa/xa_priv.h b/src/gallium/state_trackers/xa/xa_priv.h
index d00114f99b..de4639a41a 100644
--- a/src/gallium/state_trackers/xa/xa_priv.h
+++ b/src/gallium/state_trackers/xa/xa_priv.h
@@ -237,7 +237,10 @@ void renderer_bind_destination(struct xa_context *r,
void renderer_init_state(struct xa_context *r);
void renderer_copy_prepare(struct xa_context *r,
struct pipe_surface *dst_surface,
- struct pipe_resource *src_texture);
+ struct pipe_resource *src_texture,
+ const enum xa_formats src_xa_format,
+ const enum xa_formats dst_xa_format);
+
void renderer_copy(struct xa_context *r, int dx,
int dy,
int sx,