summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_blit.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-12-15 12:10:03 -0800
committerEric Anholt <eric@anholt.net>2010-12-16 10:48:19 -0800
commit290a1141bc561cbd8fd2bbbb0a7c24d1b6abe0b4 (patch)
treec4da5621d0c2a94979566edbfb08c561d05fcde5 /src/mesa/drivers/dri/intel/intel_blit.h
parentec03b316b4dc5d56b8510cc5aeb0f71a4fdada18 (diff)
intel: Support glCopyTexImage() from XRGB8888 to ARGB8888.
The only mismatch between the two is that we have to clear the destination's alpha to 1.0. Fixes WOW performance on my Ironlake, from a few frames a second to almost playable.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_blit.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_blit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_blit.h b/src/mesa/drivers/dri/intel/intel_blit.h
index 0163146573..ff69e4f8f8 100644
--- a/src/mesa/drivers/dri/intel/intel_blit.h
+++ b/src/mesa/drivers/dri/intel/intel_blit.h
@@ -69,5 +69,7 @@ void intel_emit_linear_blit(struct intel_context *intel,
drm_intel_bo *src_bo,
unsigned int src_offset,
unsigned int size);
+void intel_set_teximage_alpha_to_one(struct gl_context *ctx,
+ struct intel_texture_image *intel_image);
#endif