aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/intel_extensions.c
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2015-06-06 09:33:33 +0100
committerChris Wilson <[email protected]>2015-09-01 16:41:07 +0100
commitd38a5601068ae1d923efece8f28757777f4474e4 (patch)
treee13c4b24c28921f826d72e1752f64d2592f14f77 /src/mesa/drivers/dri/i965/intel_extensions.c
parent1484d8c9aa2e7e78462ffb5c207394bef77af89b (diff)
i965: Prevent coordinate overflow in intel_emit_linear_blit
Fixes regression from commit 8c17d53823c77ac1c56b0548e4e54f69a33285f1 Author: Kenneth Graunke <[email protected]> Date: Wed Apr 15 03:04:33 2015 -0700 i965: Make intel_emit_linear_blit handle Gen8+ alignment restrictions. which adjusted the coordinates to be relative to the nearest cacheline. However, this then offsets the coordinates by up to 63 and this may then cause them to overflow the BLT limits. For the well aligned large transfer case, we can use 32bpp pixels and so reduce the coordinates by 4 (versus the current 8bpp pixels). We also have to be more careful doing the last line just in case it may exceed the coordinate limit. Reported-and-tested-by: [email protected] Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90734 Signed-off-by: Chris Wilson <[email protected]> Cc: Kenneth Graunke <[email protected]> Cc: Ian Romanick <[email protected]> Cc: Anuj Phogat <[email protected]> Cc: [email protected] Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_extensions.c')
0 files changed, 0 insertions, 0 deletions