Skip to content

Commit

Permalink
Vulkan: Pass correct level count in getLevelDrawImageView
Browse files Browse the repository at this point in the history
This bug was hit by a KHR ES 3.1 test.

This CL just applies the obvious fix already noted by jmadill@.

Test: KHR-GLES31.core.shader_image_size.*-nonMS-*
Bug: angleproject:4008
Bug: angleproject:4108
Change-Id: I5d05c0a7432f7b70d2b995fd8b11224c119ece5f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2042491
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Cody Northrop <cnorthrop@google.com>
  • Loading branch information
cnorthrop authored and Commit Bot committed Feb 6, 2020
1 parent 36f2c80 commit e02f499
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions src/libANGLE/renderer/vulkan/vk_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3652,8 +3652,7 @@ angle::Result ImageViewHelper::getLevelDrawImageView(ContextVk *contextVk,
{
onResourceAccess(&contextVk->getResourceUseList());

// TODO(http://anglebug.com/4008): Possibly incorrect level count.
ImageView *imageView = GetLevelImageView(&mLevelDrawImageViews, level, 1);
ImageView *imageView = GetLevelImageView(&mLevelDrawImageViews, level, image.getLevelCount());

*imageViewOut = imageView;
if (imageView->valid())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@

4312 VULKAN : KHR-GLES31.core.shader_image_load_store.advanced-sync-imageAccess = SKIP
4315 VULKAN : KHR-GLES31.core.shader_image_load_store.advanced-memory-order-vsfs = FAIL
4108 VULKAN : KHR-GLES31.core.shader_image_size.*-nonMS-* = SKIP

// Unimplemented glValidateCreateShaderProgramv:
4146 : KHR-GLES31.core.shader_storage_buffer_object.basic-syntaxSSO = FAIL
Expand Down

0 comments on commit e02f499

Please sign in to comment.