diff options
author | Anuj Phogat <[email protected]> | 2014-01-07 17:46:45 -0800 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-02-26 13:43:00 -0800 |
commit | b3094d9927fe7aa5a84892262404aaad4d728724 (patch) | |
tree | 6476968571a46fbf8824bad3bbf58116e34e2a9a /src/mesa/drivers | |
parent | 863a1f7757a98f61b58d4a1c6ee5e8ed34f51b9b (diff) |
i965: Fix the region's pitch condition to use blitter
intelEmitCopyBlit uses a signed 16-bit integer to represent
buffer pitch, so it can only handle buffer pitches < 32k.
Cc: [email protected]
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_blit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index 2126f1be6e5..d4822727874 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.c +++ b/src/mesa/drivers/dri/i965/intel_blit.c @@ -204,9 +204,9 @@ intel_miptree_blit(struct brw_context *brw, * As a result of these two limitations, we can only use the blitter to do * this copy when the region's pitch is less than 32k. */ - if (src_mt->region->pitch > 32768 || - dst_mt->region->pitch > 32768) { - perf_debug("Falling back due to >32k pitch\n"); + if (src_mt->region->pitch >= 32768 || + dst_mt->region->pitch >= 32768) { + perf_debug("Falling back due to >=32k pitch\n"); return false; } |