diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-01 14:55:44 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-01 21:41:23 +0100 |
commit | 120c98ac10435c8e848a8337c1f544f81a05cd3a (patch) | |
tree | 2c69846fad530f2d45d29ebfcae2783955b3872a /src/sna/kgem_debug_gen3.c | |
parent | f6c8c3bb6fd75bca6c7704b7d5869a5d44ce3832 (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_gen3.c')
-rw-r--r-- | src/sna/kgem_debug_gen3.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/kgem_debug_gen3.c b/src/sna/kgem_debug_gen3.c index da1d9fc9..6709a8ec 100644 --- a/src/sna/kgem_debug_gen3.c +++ b/src/sna/kgem_debug_gen3.c @@ -1552,9 +1552,6 @@ out: int kgem_gen3_decode_3d(struct kgem *kgem, uint32_t offset) { - uint32_t opcode; - unsigned int idx; - struct { uint32_t opcode; int min_len; @@ -1572,6 +1569,8 @@ int kgem_gen3_decode_3d(struct kgem *kgem, uint32_t offset) { 0x07, 1, 1, "3DSTATE_RASTERIZATION_RULES" }, }; uint32_t *data = kgem->batch + offset; + uint32_t opcode; + unsigned int idx; opcode = (data[0] & 0x1f000000) >> 24; |