summaryrefslogtreecommitdiffstats
path: root/doxygen
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2012-02-02 16:32:45 -0700
committerIan Romanick <[email protected]>2012-02-07 10:00:32 -0800
commitd59466279e45a1e9c3f9081f72fedbdf961afbe1 (patch)
treee2a48c3804f28841d3eab75ab5f763bc33ba8669 /doxygen
parent65b096aeddd9b45ca038f44cc9adfff86c8c48b2 (diff)
intel: Avoid divide by zero for very small linear blits
If size is small (such as 1), pitch = ROUND_DOWN_TO(MIN2(size, (1 << 15) - 1), 4); makes pitch = 0. Then height = size / pitch; causes a division-by-zero exception. If pitch is zero, set height to 1 and avoid the division. This fixes piglit's bin/getteximage-formats test and glean's bufferObject test. NOTE: This is a candidate for the 8.0 release branch. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44971
Diffstat (limited to 'doxygen')
0 files changed, 0 insertions, 0 deletions