diff options
author | Chris Dalton <csmartdalton@google.com> | 2017-11-02 16:51:34 +0000 |
---|---|---|
committer | Jim Van Verth <jvanverth@google.com> | 2017-11-02 16:53:32 +0000 |
commit | 2b17f64694c4b919f8ea5dff5a81813f435fb410 (patch) | |
tree | 81428034488aaf82d2c4c1847b9c0dd7ae22ea21 | |
parent | ed6d6daa566c2576cd41b94b6d856d27ae325274 (diff) |
Revert "Fix signed/unsigned comparison in assert"
This reverts commit ed6d6daa566c2576cd41b94b6d856d27ae325274.
Reason for revert: vulkan crash
Original change's description:
> Fix signed/unsigned comparison in assert
>
> Bug: skia:
> Change-Id: I4759ea1c42cad1d1b1f159d1d8c2c607453abad7
> Reviewed-on: https://skia-review.googlesource.com/66900
> Reviewed-by: Jim Van Verth <jvanverth@google.com>
> Commit-Queue: Chris Dalton <csmartdalton@google.com>
TBR=jvanverth@google.com,csmartdalton@google.com
Change-Id: Idedaf001ba86bf76b86c317bbfeaf4226e37d314
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: skia:
Reviewed-on: https://skia-review.googlesource.com/67020
Reviewed-by: Jim Van Verth <jvanverth@google.com>
-rw-r--r-- | src/gpu/vk/GrVkCommandBuffer.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/vk/GrVkCommandBuffer.cpp b/src/gpu/vk/GrVkCommandBuffer.cpp index 0796722f3e..ba19168b37 100644 --- a/src/gpu/vk/GrVkCommandBuffer.cpp +++ b/src/gpu/vk/GrVkCommandBuffer.cpp @@ -333,8 +333,7 @@ void GrVkCommandBuffer::setDiscardRectangles(const GrVkGpu* gpu, uint32_t discardRectangleCount, const VkRect2D* discardRectangles) { SkASSERT(fIsActive); - SkASSERT(firstDiscardRectangle + discardRectangleCount <= - (uint32_t)gpu->vkCaps().maxWindowRectangles()); + SkASSERT(firstDiscardRectangle + discardRectangleCount <= gpu->vkCaps().maxWindowRectangles()); SkASSERT(gpu->vkCaps().maxWindowRectangles() <= GrWindowRectangles::kMaxWindows); if (memcmp(discardRectangles, &fCachedDiscardRectangles[firstDiscardRectangle], discardRectangleCount * sizeof(VkRect2D))) { |