summaryrefslogtreecommitdiff
path: root/src/sna/kgem_debug.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-07-01 14:55:44 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-07-01 21:41:23 +0100
commit120c98ac10435c8e848a8337c1f544f81a05cd3a (patch)
tree2c69846fad530f2d45d29ebfcae2783955b3872a /src/sna/kgem_debug.h
parentf6c8c3bb6fd75bca6c7704b7d5869a5d44ce3832 (diff)
sna: Downsample sources 2x too large to fit in the 3D pipeline
This is quite trivial to hit given the 2k limits on gen2/gen3. We compromise on image quality by pre-downscaling the source by a fixed factor to make it fit into the pipeline in preference to performing the entire operation on the CPU. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/kgem_debug.h')
-rw-r--r--src/sna/kgem_debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sna/kgem_debug.h b/src/sna/kgem_debug.h
index f9a931df..9211dcb3 100644
--- a/src/sna/kgem_debug.h
+++ b/src/sna/kgem_debug.h
@@ -25,4 +25,7 @@ void kgem_gen4_finish_state(struct kgem *kgem);
int kgem_gen3_decode_3d(struct kgem *kgem, uint32_t offset);
void kgem_gen3_finish_state(struct kgem *kgem);
+int kgem_gen2_decode_3d(struct kgem *kgem, uint32_t offset);
+void kgem_gen2_finish_state(struct kgem *kgem);
+
#endif