diff options
author | Neil Roberts <[email protected]> | 2015-09-02 11:29:16 +0100 |
---|---|---|
committer | Neil Roberts <[email protected]> | 2015-09-03 17:00:54 +0100 |
commit | ce181aea6cb5353181add7b5aca3c0b196a9b513 (patch) | |
tree | ad254471ca9c5148d462259c4379652753849f82 /src/gallium/winsys/amdgpu/drm | |
parent | 30e84530a097278c7cf01c0491dba5866510c4c5 (diff) |
mesa/pbo: Handle zero width, height or depth when validating access
It's legal to call glTexSubImage with zero values for the width,
height or depth. Previously this was breaking the PBO access
validation because it tries to work out the last pixel accessed by
getting the pixel at height-1 and depth-1 which would end up with
bogus values.
This was causing GL errors to be generated during the Piglit
texsubimage test, although the test was passing anyway.
v2: Also check for width == 0. Don't validate the start pointer if any
of the dimensions are zero.
Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu/drm')
0 files changed, 0 insertions, 0 deletions